Documentation
¶
Index ¶
- func AnyToBool(val any) (bool, bool)
- func AnyToFloat(val any) (float64, 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
- type Field
- type Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyToFloat ¶ added in v0.1.1
typecast from any to float
func CastSliceValue ¶
cast value to slice of type
func FlattenMap ¶
flatten nest map data to dot separated key data
func ResolveBytes ¶
resolve byte data from file or reader
func ResolveFileBytes ¶
resolve byte data from file
func ResolvePaths ¶
resolve file path for config file
Types ¶
type BaseReader ¶
type BaseReader struct{}
base reader to extend with (optional)
func (BaseReader) ConfigExtensions ¶
func (r BaseReader) ConfigExtensions() []string
file extension for related reader
Click to show internal directories.
Click to hide internal directories.