Versions in this module Expand all Collapse all v0 v0.1.2 May 9, 2025 v0.1.1 May 9, 2025 Changes in this version + func AnyToFloat(val any) (float64, bool) v0.1.0 May 8, 2025 Changes in this version + func AnyToBool(val any) (bool, bool) + func AnyToInt(val any) (int64, bool) + func CastSliceValue(value any, tp reflect.Kind) ([]any, bool) + func CastValue(value any, tp reflect.Kind) (any, bool) + func FlattenMap(data map[string]any, prefix string) map[string]any + func ResolveBytes(r Reader, reader io.Reader, paths []string, strict bool) ([]byte, error) + func ResolveFileBytes(r Reader, paths []string, strict bool) ([]byte, error) + func ResolvePaths(r Reader, opts *options.Options, path string) []string + func ToSnakeCase(s string) string + type BaseReader struct + func (r BaseReader) ConfigExtensions() []string + func (r BaseReader) Parse(_ *options.Options, _ []*Field) error + type Field struct + Alias []string + Kind reflect.Kind + List bool + Name string + Null bool + Usage string + Value any + func NewField[T any](name string, value T, usage string) (*Field, error) + func (f *Field) AddAlias(a string) *Field + func (f *Field) ValueAsBool() bool + func (f *Field) ValueAsInt() int + func (f *Field) ValueAsString() string + type Reader interface + ConfigExtensions func() []string + Configurator func() string + Get func(opts *options.Options, field *Field) (any, bool) + Parse func(opts *options.Options, fields []*Field) error