Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.66.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 11 Imported by: 14

Documentation

Index

Constants

View Source
const APP_CONFIG = "APP_CONFIG"
View Source
const APP_CONFIG_SECRETS = "APP_CONFIG_SECRETS"

Variables

This section is empty.

Functions

func LoadEnvironmentFile added in v0.15.3

func LoadEnvironmentFile(logger log.Logger, envVar string, v *viper.Viper) error

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(logger log.Logger) Service

func (*Service) Load

func (s *Service) Load(config interface{}) error

func (*Service) LoadEmbeddedFile added in v0.44.0

func (s *Service) LoadEmbeddedFile(file string, config interface{}, fs fs.FS) error

func (*Service) LoadFile

func (s *Service) LoadFile(file string, config interface{}) error

func (*Service) LoadFromFS added in v0.44.0

func (s *Service) LoadFromFS(config interface{}, fs fs.FS) error

func (*Service) MergeEnvironments added in v0.44.0

func (s *Service) MergeEnvironments(config interface{}) error

Jump to

Keyboard shortcuts

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