Help us shape the future of Go! Take the 2026 Go Developer Survey

resolver

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveDefaultValue

func ResolveDefaultValue(val string, resolvedOptions map[string]string) string

func ResolveDefaultValues

func ResolveDefaultValues(
	vals map[string]string,
	resolvedOptions map[string]string,
) map[string]string

Types

type Option

type Option func(r *Resolver)

func WithResolveGlobal

func WithResolveGlobal() Option

func WithResolveLocal

func WithResolveLocal() Option

func WithResolveSubOptions

func WithResolveSubOptions() Option

func WithSkipRequired

func WithSkipRequired(skip bool) Option

type Resolver

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

func New

func New(
	userOptions map[string]string,
	extraValues map[string]string,
	opts ...Option,
) *Resolver

func (*Resolver) Resolve

func (r *Resolver) Resolve(
	ctx context.Context,
	dynamicDefinitions map[string]*types.Option,
	optionDefinitions map[string]*types.Option,
	optionValues map[string]config.OptionValue,
) (map[string]config.OptionValue, config.OptionDefinitions, error)

Jump to

Keyboard shortcuts

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