normalize

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 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 lowercases the first letter of a field name. Examples: Host → host, APIKey → aPIKey

func ToLowerDotPath

func ToLowerDotPath(key string) string

ToLowerDotPath normalizes a key to lowercase dot-separated path. Double underscores (__) → dots, all other underscores stripped. Examples: FOO__BAR → foo.bar, DB_MAX → dbmax, MAX_CONNECTIONS → maxconnections

Types

This section is empty.

Jump to

Keyboard shortcuts

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