normalize

package
v0.4.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPrefix

func ApplyPrefix(prefix, key string) string

ApplyPrefix combines prefix with key: prefix.key or key if prefix is empty.

func DeriveFieldPath

func DeriveFieldPath(fieldName string) string

DeriveFieldPath derives a normalized key from a field name. It converts Go-style names to snake_case for consistent matching. Examples: Host -> host, APIKey -> api_key, MaxConnections -> max_connections

func ToLowerDotPath

func ToLowerDotPath(key string) string

ToLowerDotPath normalizes a key to lowercase dot-separated path. Double underscores (__) -> dots, single underscores are preserved. Examples: FOO__BAR -> foo.bar, DB_MAX -> db_max, MAX_CONNECTIONS -> max_connections

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL