config

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Get(path ...string) Value
	Delete(path ...string) error
	Set(val interface{}, path ...string) error
}

type Value

type Value interface {
	Error() error
	Raw() string
	Scan(v interface{}) error
	String() (string, bool)
	StringOr(def string) string
	Int32() (int32, bool)
	Int32Or(def int32) int32
	Int64() (int64, bool)
	Int64Or(def int64) int64
	Bool() (bool, bool)
	BoolOr(def bool) bool
	Float64() (float64, bool)
	Float64Or(def float64) float64
	Duration() (time.Duration, bool)
	DurationOr(def time.Duration) time.Duration
}

Jump to

Keyboard shortcuts

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