config

package module
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 11 Imported by: 9

README

config

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(name string, conf interface{}) []error

func ResetConfigEnv

func ResetConfigEnv()

Types

type Configurable added in v0.1.17

type Configurable interface {
	ConfigureBy(setting string)
}

type Duration added in v0.1.17

type Duration time.Duration

func (*Duration) ConfigureBy added in v0.1.17

func (tm *Duration) ConfigureBy(setting string)

func (*Duration) MarshalJSON added in v0.1.17

func (tm *Duration) MarshalJSON() ([]byte, error)

func (*Duration) MarshalYAML added in v0.1.17

func (tm *Duration) MarshalYAML() (interface{}, error)

func (*Duration) TimeDuration added in v0.1.17

func (tm *Duration) TimeDuration() time.Duration

func (*Duration) UnmarshalJSON added in v0.1.17

func (tm *Duration) UnmarshalJSON(value []byte) error

func (*Duration) UnmarshalYAML added in v0.1.17

func (tm *Duration) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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