variables

package
Version: v0.0.0-...-c65c995 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Defined

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

Defined checks if variable is defined in a struct

func Dict

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

Dict allows to send more than one variable into a template

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