scope

package
v0.0.0-...-36fd41a Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: MPL-2.0 Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PseudoBuilder

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

func NewPseudoBuilder

func NewPseudoBuilder(prefix string) *PseudoBuilder

func (*PseudoBuilder) Build

func (builder *PseudoBuilder) Build(in []byte) error

func (*PseudoBuilder) Variables

func (builder *PseudoBuilder) Variables() Variables

Variables returns the all available variables

type ReflectBuilder

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

ReflectBuilder is a new scoped variable builder

func NewReflectBuilder

func NewReflectBuilder(prefix, delim string) *ReflectBuilder

NewReflectBuilder inits a new builder with the starting prefix and delimiter to use for key paths

func (*ReflectBuilder) Build

func (rb *ReflectBuilder) Build(obj interface{}) error

Build builds scope variables from the object

func (*ReflectBuilder) Variables

func (rb *ReflectBuilder) Variables() Variables

Variables returns the built scope variables

type Variables

type Variables map[string]ast.Variable

Variables holds scoped variables

func (Variables) Names

func (vars Variables) Names() []string

Names returns a slice of variable names

Jump to

Keyboard shortcuts

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