Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultVersion = "X"
DefaultVersion is some valid value
View Source
const LegacyVersion = "Y"
LegacyVersion is old
View Source
const TwoPointO = "2.0"
TwoPointO for literal version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Num describes the number of subthings Num int `json:"num"` // An option // +required Option DirectType `json:"option"` PointerOption *PointerType `json:"pointeroption"` PackageOption subpkg.PackageType `json:"packageoption"` AliasedInt Alias `json:"aliasedint"` Unknown interface{} `json:"unknown"` Other map[string]string `json:"other"` // Determines the version of the main thing. Valid variants are: // `DefaultVersion` (default): This is the right option, // `LegacyVersion`: Will be deprecated, // `TwoPointO`, // `"2"` Version string `json:"version"` // Tells us which kind of config. // Valid variants are `Kind` constants Kind string `json:"kind"` // Valid entries are `Kind` constants Kinds []string `json:"kinds"` SumType SumType `json:"sumType"` }
Config describes some settings for _some_ things
type DirectType ¶
type DirectType struct {
Kind string `json:"kind"`
}
DirectType describes a sub configuration of the Config
type PointerType ¶
type PointerType struct {
Kind string `json:"kind"`
}
PointerType describes a sub configuration of the Config
Click to show internal directories.
Click to hide internal directories.