conf

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Parse(any) error
	Get(string) any
	GetBool(string) bool
	GetString(string) string
	GetInt(string) int
}

Config interface determines the common methods for parsing configuration from specified resources

type StaticConfig

type StaticConfig interface {
	// LoadAndSet load config from anywhere and set to conf struct
	LoadAndSet(conf interface{}) error
}

StaticConfig the config that do not update after application run Deprecated: suggested use Config instead

Jump to

Keyboard shortcuts

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