variable

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REGEX_VARIABLE = `\${([^${}]+)}` // ${var_name}
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Variable

type Variable struct {
	Name        string
	Description string
	Value       string
	Resolved    bool
}

type Variables

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

func NewVariables

func NewVariables() *Variables

func (*Variables) Build

func (vars *Variables) Build() error

func (*Variables) Debug

func (vars *Variables) Debug()

func (*Variables) Get

func (vars *Variables) Get(name string) (string, error)

func (*Variables) Register

func (vars *Variables) Register(v Variable) error

func (*Variables) Rendering

func (vars *Variables) Rendering(s string) (string, error)

"hello, ${varname}" => "hello, world"

func (*Variables) Set added in v0.1.0

func (vars *Variables) Set(name, value string) error

Jump to

Keyboard shortcuts

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