gconfig

package
v0.0.0-...-3e416e1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*viper.Viper
}

func New

func New() *Config

func NewConfigBytes

func NewConfigBytes(b []byte, typ ...string) (c *Config, err error)

func NewFromFile

func NewFromFile(file string, typ ...string) (c *Config, err error)

func NewFromSearch

func NewFromSearch(paths []string, filename string, typ ...string) (c *Config, err error)

func (*Config) Sub

func (c *Config) Sub(key string) gcore.SubConfig

Jump to

Keyboard shortcuts

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