config

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir() (string, error)

func Init

func Init(path string)

func Path

func Path() string

func ReadConfig

func ReadConfig(file, typ string, data interface{}) (err error)

Types

type Viper

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

func Config

func Config() *Viper

func New

func New(path string) *Viper

func (*Viper) Path

func (v *Viper) Path() string

func (*Viper) ReadConfig

func (v *Viper) ReadConfig(file, typ string, data interface{}) (err error)

Jump to

Keyboard shortcuts

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