env
Index
- Variables
- type Var
- func NewVar(name string, typ api.EnvVarType) *Var
- func (v *Var) Name() string
- func (v *Var) Type() api.EnvVarType
- type VarOption
Variables
var (
Array = func(evs *api.EnvVarDefinition) {
evs.Type = api.EnvVarTypeArray
}
Bool = func(evs *api.EnvVarDefinition) {
evs.Type = api.EnvVarTypeBoolean
}
Number = func(evs *api.EnvVarDefinition) {
evs.Type = api.EnvVarTypeNumber
}
String = func(evs *api.EnvVarDefinition) {
evs.Type = api.EnvVarTypeString
}
Required = func(evs *api.EnvVarDefinition) {
evs.Required = true
}
)
type Var
func NewVar
func (*Var) Name
func (*Var) Type
type VarOption
Generated by gomarkdoc