yunify_confdfunc

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(v interface{}) (string, error)

func Base64Encode

func Base64Encode(v interface{}) (string, error)

func DoArithmetic

func DoArithmetic(a, b interface{}, op rune) (interface{}, error)

DoArithmetic performs arithmetic operations (+,-,*,/) using reflection to determine the type of the two terms. This func will auto convert string and uint to int64/float64, then apply operations, return float64, or int64

func Filter

func Filter(regex string, c interface{}) ([]interface{}, error)

func MakeCustomFuncMap

func MakeCustomFuncMap() template.FuncMap

func ToJson

func ToJson(v interface{}) (string, error)

func ToYaml

func ToYaml(v interface{}) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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