datasource

package
v0.0.0-...-3ada85e Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datasource

type Datasource interface {
	Range(key string, f func(key string, name string) bool)
	Unmarshal(key string, value interface{}) error
}

type Ini

type Ini struct {
	Ini *ini.File
}

func (*Ini) Range

func (t *Ini) Range(prefix string, f func(key string, name string) bool)

func (*Ini) Unmarshal

func (t *Ini) Unmarshal(key string, value interface{}) error

type Toml

type Toml struct {
	Viper *viper.Viper
}

func (*Toml) Range

func (t *Toml) Range(prefix string, f func(key string, name string) bool)

func (*Toml) Unmarshal

func (t *Toml) Unmarshal(key string, value interface{}) error

Jump to

Keyboard shortcuts

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