variables

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dict

func Dict(values ...interface{}) (map[string]interface{}, error)

Dict allows to send more than one variable into a template.

func FieldInStruct

func FieldInStruct(data interface{}, field string) bool

FieldInStruct checks if variable is defined in a struct.

func IsMap

func IsMap(sth interface{}) bool

IsMap checks if some variable is a map

func IsSlice

func IsSlice(sth interface{}) bool

IsSlice checks if some variable is a slice

func StringInSlice

func StringInSlice(a string, list []string) (bool, int)

StringInSlice checks if a slice contains a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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