cfg

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

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

func New

func New(resolver func(ctx context.Context, name string) (config.Value, error)) *Input

func (*Input) Argument

func (i *Input) Argument(ctx context.Context, name string) value.Value

func (*Input) Bind

func (i *Input) Bind(ctx context.Context, def *input.Definition) error

func (*Input) Option

func (i *Input) Option(ctx context.Context, name string) value.Value

type Resolver

type Resolver func(ctx context.Context, name string) (config.Value, error)

type Value

type Value struct {
	config.Value
}

func (Value) Any

func (v Value) Any() interface{}

Jump to

Keyboard shortcuts

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