gonfig

package module
v0.0.0-...-86a9986 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DotEnv types.SourceType = iota
	YAML
	JSON
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigManager

type ConfigManager interface {
	AddProvider(provider Provider) error
	GetConfig(string) (any, error)
	MapConfig(string, any) error
	ReloadConfig() error
}

func NewConfigManager

func NewConfigManager() ConfigManager

type Provider

type Provider struct {
	ProviderType types.SourceType
	FileName     string
	FileContent  string
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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