functions

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandArray added in v0.3.2

func ExpandArray(array []interface{}) ([]interface{}, error)

ExpandArray takes an array whose elements may have been generated from Unobin function calls and converts the values into ordinary Go values.

func ExpandObject added in v0.3.2

func ExpandObject(object map[string]interface{}) (map[string]interface{}, error)

ExpandObject takes a map whose elements may have been generated from Unobin function calls and converts the values into ordinary Go values.

Types

type Array

type Array struct {
	Value []interface{}
	Error error
}

type Bool

type Bool struct {
	Value bool
	Error error
}

func BoolOutput

func BoolOutput(ctx *types.Context, task, path String) Bool

func BoolVar

func BoolVar(ctx *types.Context, path String) Bool

func WhenExecute

func WhenExecute(_ctx *types.Context, exec String) Bool

type Float

type Float struct {
	Value float64
	Error error
}

type Int

type Int struct {
	Value int64
	Error error
}

type Interface

type Interface struct {
	Value interface{}
	Error error
}

func AnyOutput

func AnyOutput(ctx *types.Context, task, path String) Interface

func AnyVar

func AnyVar(ctx *types.Context, path String) Interface

type Object added in v0.3.2

type Object struct {
	Value map[string]interface{}
	Error error
}

type String

type String struct {
	Value string
	Error error
}

func Format

func Format(_ctx *types.Context, format String, args ...Interface) String

func StringOutput

func StringOutput(ctx *types.Context, task, path String) String

func StringVar

func StringVar(ctx *types.Context, path String) String

Jump to

Keyboard shortcuts

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