yaml

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalStrValue

func GetLocalStrValue(file string, key string) (string, *Error)

func GetLocalValue

func GetLocalValue(file string, key string) (interface{}, *Error)

func GetMap

func GetMap(file string, config []string) (map[string]interface{}, *Error)

func GetStrValue

func GetStrValue(file string, config []string, key string) (string, *Error)

func GetValue

func GetValue(file string, config []string, key string) (interface{}, *Error)

func LoadConfig

func LoadConfig(config string) (*viper.Viper, map[string]interface{}, *Error)

func MultiGetMap

func MultiGetMap(file string, config []string) (*viper.Viper, map[string]interface{}, *Error)

func SetLocalValue

func SetLocalValue(file string, key string, value interface{}) *Error

func SetValue

func SetValue(file string, config []string, key string, value interface{}) *Error

Types

This section is empty.

Jump to

Keyboard shortcuts

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