goconfig

package module
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 13 Imported by: 0

README

Goconfig

Provides configuration to Go apps. It's currently based on Koanf (https://github.com/knadh/koanf) with default config sources.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*koanf.Koanf
}

func LoadDefault added in v0.2.0

func LoadDefault() *Config

func LoadDefaultWithGlobalFile added in v0.4.0

func LoadDefaultWithGlobalFile() *Config

func New

func New() *Config

type MountedVolumesProvider added in v0.3.0

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

func Provider added in v0.3.0

func Provider(paths ...string) *MountedVolumesProvider

func (*MountedVolumesProvider) Read added in v0.3.0

func (p *MountedVolumesProvider) Read() (map[string]interface{}, error)

func (*MountedVolumesProvider) ReadBytes added in v0.3.0

func (p *MountedVolumesProvider) ReadBytes() ([]byte, error)

Jump to

Keyboard shortcuts

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