builtins

package
v0.71.8-6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And

func And(param interface{}) bool

conditions

func BuiltinFunctionsMapping

func BuiltinFunctionsMapping(key string) interface{}

func CallBuiltinFunc

func CallBuiltinFunc(funcName string, funcParams interface{}) interface{}

func ConvertTimeToStr

func ConvertTimeToStr(param interface{}) string

param is time int, to str

func ConvertTimeToUnix

func ConvertTimeToUnix(param interface{}) int64

param is time str

func CurrentTimeStampString

func CurrentTimeStampString(param interface{}) string

func CurrentTimeStampUnix

func CurrentTimeStampUnix(param interface{}) int64

func DayEnd

func DayEnd(param interface{}) interface{}

2006-01-02 23:59:59

func DayStart

func DayStart(param interface{}) interface{}

2006-01-02 00:00:00

func If

func If(param interface{}) bool

func Join

func Join(param interface{}) string

{ "Fn::Join" : [ ":", [ "a", "b", "c" ] ] }

func Length

func Length(param interface{}) int

func NextAlphaNumeric

func NextAlphaNumeric(param interface{}) string

func NextInt

func NextInt(param interface{}) int

func NextStringNumeric

func NextStringNumeric(param interface{}) string

func Not

func Not(param interface{}) bool

func Or

func Or(param interface{}) bool

func Replace

func Replace(param interface{}) string

Replace(s, old, new string, n int) string { "Fn::Replace" : ["2019-01-01" , "-", "/"] } => "2019/01/01"

func Select

func Select(param interface{}) string

{ "Fn::Select" : [ "1", [ "apples", "grapes", "oranges", "mangoes" ] ] }

func Split

func Split(param interface{}) []string

{ "Fn::Split" : [ "|" , "a|b|c" ] }

func SubString

func SubString(param interface{}) string

SubString(s, start_position, end_position) string { "Fn::SubString" : ["2019-01-01" , 1, 3] } => "019"

func Substitute

func Substitute(param interface{}) string

{ "Fn::Substitute" : [ String, { Var1Name: Var1Value, Var2Name: Var2Value } ] } { "Fn::Substitute" : [ "www.${var1}", { "var1": "value1"} ]}

func TimeStampUnixOffset

func TimeStampUnixOffset(param interface{}) interface{}

{ "Fn::TimeStampOffset" : [ "time" , "offset", "unit" ] }

func ToBool

func ToBool(param interface{}) bool

func ToInt

func ToInt(param interface{}) interface{}

func ToString

func ToString(param interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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