Documentation
¶
Index ¶
- func AutoBindToViper(cfg Config, v *viper.Viper) error
- func AutoLoadLua(cmd *cobra.Command)
- func BindToViper(cfg Config, v *viper.Viper) error
- func BindToViperWithArrays(filePath string, v *viper.Viper) error
- func Load(cfg Config) (map[string]any, error)
- func LoadWithArrays(filePath string) (map[string]any, error)
- func LoadWithArraysAndGlobals(filePath string, globals map[string]any) (map[string]any, error)
- func LoadWithGlobals(filePath string, globals map[string]any) (map[string]any, error)
- func UseWithCobra(cmd *cobra.Command)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoBindToViper ¶
AutoBindToViper automatically determines the best configuration for Viper binding
func AutoLoadLua ¶
AutoLoadLua automatically detects and loads .lua config files from Viper's config settings
func BindToViperWithArrays ¶
BindToViperWithArrays loads a Lua config file with array conversion and binds to Viper
func LoadWithArrays ¶
LoadWithArrays loads a Lua config file and converts arrays to Go slices
func LoadWithArraysAndGlobals ¶
LoadWithArraysAndGlobals loads a Lua config file with both array conversion and global variables
func LoadWithGlobals ¶
LoadWithGlobals loads a Lua config file with predefined global variables
func UseWithCobra ¶
UseWithCobra adds Lua config support to a Cobra command with automatic detection
Types ¶
Click to show internal directories.
Click to hide internal directories.