variables

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ignored

func Ignored(key string) bool

Types

type List

type List struct {
	// This variable is the start value to create each combination related
	// by date.
	CurrentTime time.Time
	// Variables to use in the template.
	Items map[string]interface{}
	// contains filtered or unexported fields
}

Items is a collection of map:

func Load

func Load() *List

Load is a singleton method to return same object:

func (*List) Exist

func (l *List) Exist(name string) bool

Verify the variable name exist on the list:

func (*List) Get

func (l *List) Get(name string) interface{}

func (*List) GetDate

func (l *List) GetDate() string

func (*List) GetItems

func (l *List) GetItems() map[string]interface{}

func (*List) Set

func (l *List) Set(variables map[string]interface{})

Set variables use in the pipe:

func (*List) SetDate

func (l *List) SetDate(date string) bool

func (*List) Update

func (l *List) Update(name string, value interface{})

Update value on specific variable:

Jump to

Keyboard shortcuts

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