override

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 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 Flagger

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

Flagger can override default flag values.

func Make

func Make(overrides map[string]string, byKey feature.ByKeyFn) (Flagger, error)

Make a Flagger that returns defaults with any overrides parsed from the string.

func (Flagger) Flags

func (f Flagger) Flags(_ context.Context, flags ...feature.Flag) (map[string]interface{}, error)

Flags returns a map of default values with overrides applied. It never returns an error.

Jump to

Keyboard shortcuts

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