This go module provides an implementation of some ARM template functions in Go. It is a work in progress and not all functions are implemented yet, and may never be.
Some functions are implemented in a way that they are not 100% compatible with the ARM template functions.
For example, the format()
function does not support format specifiers.
concat()
equals()
parameters()
if()
format()
replace()
toLower()
result, err := LexAndParse(context.Background(), "[if(equals('a', 'b'), 'a is equal to b', 'a is not equal to b')]", nil, nil)
if err != nil {
panic(err)
}
fmt.Println(result)
// Output: a is not equal to b