- type FieldData
- type FieldSchema
- type FieldType
FieldData contains the raw data and the schema that the data should adhere to
Get gets the value for the given field. If the key is an invalid field, FieldData will panic. If you want a safer version of this method, use GetOk. If the field k is not set, the default value (if set) will be returned, otherwise the zero value will be returned.
GetOk gets the value for the given field. The second return value will be false if the key is invalid or the key is not set at all.
GetOkErr is the most conservative of all the Get methods. It returns whether key is set or not, but also an error value. The error value is non-nil if the field doesn't exist or there was an error parsing the field value.
type FieldSchema ¶
FieldSchema is a basic schema to describe the format of a configuration field
type FieldType uint
FieldType is the enum of types that a field can be.