conf

package
v0.0.0-...-fdf5f90 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CnfPath = flag.String(cnf_flag, cnf_default_path, cnf_usage)
	SchPath = flag.String(sch_flag, sch_default_path, sch_usage)
)

Functions

func Compile

func Compile() error

func GetConf

func GetConf(keys ...string) (any, error)

func MustGetConf

func MustGetConf(keys ...string) any

func MustGetConfOrDefault

func MustGetConfOrDefault[T any](default_value T, keys ...string) T

Types

type Root

type Root map[string]json.RawMessage

Jump to

Keyboard shortcuts

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