configer

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoadType = map[string]func(path, name string, config any){
	".yaml":       LoadLocalYaml,
	".yml":        LoadLocalYaml,
	".toml":       LoadLocalToml,
	".json":       LoadLocalJson,
	".properties": LoadLocalProps,
	".props":      LoadLocalProps,
	".prop":       LoadLocalProps,
}

Functions

func LoadLocalJson

func LoadLocalJson(path, name string, config any)

func LoadLocalProps

func LoadLocalProps(path, name string, config any)

func LoadLocalToml

func LoadLocalToml(path, name string, config any)

func LoadLocalWithTypeName

func LoadLocalWithTypeName(path, name, typeName string, config any)

func LoadLocalYaml

func LoadLocalYaml(path, name string, config any)

func MustLoadLocal

func MustLoadLocal(path string, config any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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