Supported Types
Union Discrimination
Use theType field to determine which variant is active, then access the corresponding field:
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
imageConfig := components.CreateImageConfigStr(string{/* values here */})
imageConfig := components.CreateImageConfigNumber(float64{/* values here */})
imageConfig := components.CreateImageConfigArrayOfAny([]any{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch imageConfig.Type {
case components.ImageConfigTypeStr:
// imageConfig.Str is populated
case components.ImageConfigTypeNumber:
// imageConfig.Number is populated
case components.ImageConfigTypeArrayOfAny:
// imageConfig.ArrayOfAny is populated
}