configmain

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0, MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const OPTION_SOURCE = "main"

Variables

This section is empty.

Functions

func RegisterExtension

func RegisterExtension(e Extension)

Types

type Config

type Config struct {
	*config.DefaultOptionSet
	// contains filtered or unexported fields
}

func Get

func Get(ctx context.Context) *Config

func NewConfig

func NewConfig() *Config

func WithConfig

func WithConfig(ctx context.Context, config *Config) (context.Context, *Config)

func (*Config) Evaluate

func (this *Config) Evaluate() error

type Extension

type Extension func(cfg *Config)

Jump to

Keyboard shortcuts

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