conf

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagConfigPath

func FlagConfigPath(path ...string) string

func MarshalToFile

func MarshalToFile(config interface{}, filename string) error

MarshalToFile struct to file

func PrintJSON

func PrintJSON(config interface{}) (string, error)

PrintJSON print JSON string, null tag, will hide

func ReadConfig

func ReadConfig(filename string, config interface{}) error

ReadConfig read config filename

func UnmarshalDefaultVal

func UnmarshalDefaultVal(config interface{}) error

UnmarshalDefaultVal struct, 'defval' tag to default value

Types

This section is empty.

Jump to

Keyboard shortcuts

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