config

package module
Version: v0.5.32 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 10 Imported by: 8

README

config

Documentation

Index

Constants

View Source
const JSON openStatusType = 1
View Source
const NONE openStatusType = 0
View Source
const YML openStatusType = 2

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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL