config

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig added in v0.9.0

func GetConfig() *viper.Viper

func SetStruct added in v0.9.0

func SetStruct(S interface{}, Tags ...string) error

Set a struct for viper `Tags` represent the fields when setting config, and the fields in Tags shall prevail. `Tags` that appear first have higher priority.

Types

This section is empty.

Jump to

Keyboard shortcuts

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