config

package module
v0.0.0-...-3a3b03c Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 10 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func Data

func Data(data string) *Config

func Dir

func Dir(configDir string) *Config

func Files

func Files(files ...string) *Config

func Glob

func Glob(pattern string) *Config

func (*Config) Bytes

func (c *Config) Bytes() []byte

func (*Config) Load

func (c *Config) Load(i interface{}) *Config

func (*Config) String

func (c *Config) String() string

func (*Config) Target

func (c *Config) Target() string

type Duration

type Duration struct {
	time.Duration
}

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) (err error)

Jump to

Keyboard shortcuts

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