Documentation
¶
Index ¶
- func BoolToPtr(b bool) *bool
- func CallKey(v reflect.Value) string
- func GetConfigVersion(raw []byte) (semver.Version, report.Report, error)
- func HandleParseErrors(rawConfig []byte, to interface{}) (report.Report, error)
- func IntToPtr(x int) *int
- func IsFalse(b *bool) bool
- func IsInvalidInConfig(k reflect.Kind) bool
- func IsPrimitive(k reflect.Kind) bool
- func IsTrue(b *bool) bool
- func NilOrEmpty(s *string) bool
- func NonZeroValue(t reflect.Type) reflect.Value
- func NotEmpty(s *string) bool
- func StrToPtr(s string) *string
- type IgnoresDups
- type Keyed
- type MergesKeys
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigVersion ¶ added in v2.11.0
GetConfigVersion parses the version from the given raw config
func HandleParseErrors ¶
HandleParseErrors will attempt to unmarshal an invalid rawConfig into "to". If it fails to unmarsh it will generate a report.Report from the errors.
func IsInvalidInConfig ¶
func IsPrimitive ¶
func NilOrEmpty ¶
func NonZeroValue ¶ added in v2.10.0
Return a fully non-zero value for the specified type, recursively setting all fields and slices.
Types ¶
type IgnoresDups ¶
type IgnoresDups interface {
IgnoreDuplicates() map[string]struct{}
}
type MergesKeys ¶
Click to show internal directories.
Click to hide internal directories.