Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SupportedTypes ¶
func SupportedTypes() []string
Returns a slice of string keywords for the types supported by ConfigValue.
Types ¶
type ConfigValue ¶
type ConfigValue interface {
Type() string
}
type ConfigValueBool ¶
type ConfigValueBool struct {
Value bool
}
func (ConfigValueBool) MarshalJSON ¶
func (c ConfigValueBool) MarshalJSON() ([]byte, error)
func (ConfigValueBool) Type ¶
func (c ConfigValueBool) Type() string
type ConfigValueFloat ¶
type ConfigValueFloat struct {
Value float64
}
func (ConfigValueFloat) MarshalJSON ¶
func (c ConfigValueFloat) MarshalJSON() ([]byte, error)
func (ConfigValueFloat) Type ¶
func (c ConfigValueFloat) Type() string
type ConfigValueInt ¶
type ConfigValueInt struct {
Value int
}
func (ConfigValueInt) MarshalJSON ¶
func (c ConfigValueInt) MarshalJSON() ([]byte, error)
func (ConfigValueInt) Type ¶
func (c ConfigValueInt) Type() string
type ConfigValueStr ¶
type ConfigValueStr struct {
Value string
}
func (ConfigValueStr) MarshalJSON ¶
func (c ConfigValueStr) MarshalJSON() ([]byte, error)
func (ConfigValueStr) Type ¶
func (c ConfigValueStr) Type() string
Click to show internal directories.
Click to hide internal directories.