config

package
v0.0.0-...-22e48d9 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 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 Config

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

func FromString

func FromString(s string) (*Config, error)

func FromWasmDevFile

func FromWasmDevFile() (*Config, error)

FromWasmDevFile returns the config from a WASM dev file. If there's no WASM dev file, an empty config is retuned.

func (*Config) GetBool

func (c *Config) GetBool(name string, def bool, opts ...ValueOption) bool

func (*Config) GetString

func (c *Config) GetString(name string, def string, opts ...ValueOption) string

GetString returns the value of a string path.

type ResolvedValue

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

func IdentityValueOption

func IdentityValueOption(resolvedValue ResolvedValue) ResolvedValue

IdentityValueOption is a value option the returns the resolved value

type ValueOption

type ValueOption func(resolvedValue ResolvedValue) ResolvedValue

func WithStringOverride

func WithStringOverride(override string) ValueOption

Jump to

Keyboard shortcuts

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