config

package
v0.0.0-...-908d554 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opts ...Option)

Init 初始化配置

Types

type Configurator

type Configurator interface {
	App(name string, config interface{}) (err error)
}

Configurator 配置器

func C

func C() Configurator

c 配置器

type Option

type Option func(o *Options)

func WithSource

func WithSource(src source.Source) Option

type Options

type Options struct {
	Apps    map[string]interface{}
	Sources []source.Source
}

Jump to

Keyboard shortcuts

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