config

package
v0.0.0-...-03b02e1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvDevelopment = "dev"
	EnvStage       = "stg"
	EnvProduction  = "prd"
	EnvTest        = "test"
)
View Source
const (
	Env = "ENV"
)

Variables

This section is empty.

Functions

func ProviderSet

func ProviderSet() configs.Config

Types

type Config

type Config interface {
	Load(filename string, configType string, path string) (configs.Config, error)
}

func NewViperConfig

func NewViperConfig() Config

type ViperConfig

type ViperConfig struct{}

func (ViperConfig) Load

func (v ViperConfig) Load(filename string, configType string, path string) (configs.Config, error)

Jump to

Keyboard shortcuts

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