Data - Go SDK

Data type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

UnifiedBenchmarksAAItem

1data := components.CreateDataArtificialAnalysis(components.UnifiedBenchmarksAAItem{/* values here */})

UnifiedBenchmarksDAItem

1data := components.CreateDataDesignArena(components.UnifiedBenchmarksDAItem{/* values here */})

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:

1switch data.Type {
2 case components.DataTypeArtificialAnalysis:
3 // data.UnifiedBenchmarksAAItem is populated
4 case components.DataTypeDesignArena:
5 // data.UnifiedBenchmarksDAItem is populated
6 default:
7 // Unknown type - use data.GetUnknownRaw() for raw JSON
8}