gconf

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 4 Imported by: 1

README

go_conf

Packaging viper for daily multi-environment configuration

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Confhub

type Confhub struct {
	Core *viper.Viper
	// contains filtered or unexported fields
}

func New

func New(file string, defConfFile ...string) *Confhub

func (*Confhub) ConfigChange

func (c *Confhub) ConfigChange(fn func(e fsnotify.Event))

func (*Confhub) Exist

func (c *Confhub) Exist() bool

func (*Confhub) Get

func (c *Confhub) Get(key string) (value interface{})

func (*Confhub) GetAll

func (c *Confhub) GetAll() map[string]interface{}

func (*Confhub) Read

func (c *Confhub) Read() (err error)

func (*Confhub) Set

func (c *Confhub) Set(key string, value interface{})

func (*Confhub) SetDefault

func (c *Confhub) SetDefault(key string, value interface{})

func (*Confhub) Unmarshal

func (c *Confhub) Unmarshal(rawVal interface{}, opts ...viper.DecoderConfigOption) error

func (*Confhub) Write

func (c *Confhub) Write(filepath ...string) error

Jump to

Keyboard shortcuts

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