variables

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPossibleValues

func GetPossibleValues() (map[string][]string, error)

GetPossibleValues returns all the possible values for all variables

func GetSelectedValues

func GetSelectedValues() (map[string]string, error)

GetSelectedValues returns all selected values for each variable

func SetPossibleValues

func SetPossibleValues(toStore map[string][]string) error

SetPossibleValues replace all possible values with the new set

func SetValue

func SetValue(varName string, value string) error

SetValue sets a value for a specific variable

Types

type ValuesState

type ValuesState struct {
	PossibleValues map[string][]string `json:"possibleValues"`
	SelectedValues map[string]string   `json:"selectedValues"`
}

ValuesState is the struct used to store the current values state in the file

Jump to

Keyboard shortcuts

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