helpers

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And

func And(first, second interface{}) interface{}

func AttachToNode

func AttachToNode(first interface{}, parent *domu.Node)

func CanBeNill

func CanBeNill(first interface{}) bool

func Cap

func Cap(first, second interface{}) int

func Equal

func Equal(first, second interface{}) bool

func GreaterThan

func GreaterThan(first, second interface{}) bool

func GreaterThanEqualTo

func GreaterThanEqualTo(first, second interface{}) bool

func Index

func Index(first interface{}, indexes ...int) (interface{}, error)

func IsInvalid

func IsInvalid(first, second interface{}) bool

func IsNill

func IsNill(first interface{}) bool

func IsTrue

func IsTrue(val interface{}) (truth, ok bool)

IsTrue reports whether the value is 'true', in the sense of not the zero of its type, and whether the value has a meaningful truth value. This is the definition of truth used by if and other such actions.

func Len

func Len(first interface{}) int

func LessThan

func LessThan(first, second interface{}) bool

func LessThanEqualTo

func LessThanEqualTo(first, second interface{}) bool

func Not

func Not(first interface{}) bool

func NotEqual

func NotEqual(first, second interface{}) bool

func Or

func Or(first, second interface{}) interface{}

func Print

func Print(first interface{}) string

func Printf

func Printf(first interface{}, format string) string

func Println

func Println(first interface{}) string

func Slice

func Slice(first interface{}, indexes ...int) (interface{}, error)

func URLQuery

func URLQuery(first ...interface{}) string

func URLQueryEscaper

func URLQueryEscaper(args ...interface{}) string

URLQueryEscaper returns the escaped value of the textual representation of its arguments in a form suitable for embedding in a URL query.

Types

type FuncMap

type FuncMap map[string]interface{}

Jump to

Keyboard shortcuts

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