Merge pull request #1720 from jedevc/bake-replace-func

Add `replace` function to bake stdlib
pull/1722/head
Justin Chadwell 2 years ago committed by GitHub
commit a3293cdaaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -31,21 +31,21 @@ var stdlibFunctions = map[string]function.Function{
"cidrnetmask": cidr.NetmaskFunc, "cidrnetmask": cidr.NetmaskFunc,
"cidrsubnet": cidr.SubnetFunc, "cidrsubnet": cidr.SubnetFunc,
"cidrsubnets": cidr.SubnetsFunc, "cidrsubnets": cidr.SubnetsFunc,
"csvdecode": stdlib.CSVDecodeFunc,
"coalesce": stdlib.CoalesceFunc, "coalesce": stdlib.CoalesceFunc,
"coalescelist": stdlib.CoalesceListFunc, "coalescelist": stdlib.CoalesceListFunc,
"compact": stdlib.CompactFunc, "compact": stdlib.CompactFunc,
"concat": stdlib.ConcatFunc, "concat": stdlib.ConcatFunc,
"contains": stdlib.ContainsFunc, "contains": stdlib.ContainsFunc,
"convert": typeexpr.ConvertFunc, "convert": typeexpr.ConvertFunc,
"csvdecode": stdlib.CSVDecodeFunc,
"distinct": stdlib.DistinctFunc, "distinct": stdlib.DistinctFunc,
"divide": stdlib.DivideFunc, "divide": stdlib.DivideFunc,
"element": stdlib.ElementFunc, "element": stdlib.ElementFunc,
"equal": stdlib.EqualFunc, "equal": stdlib.EqualFunc,
"flatten": stdlib.FlattenFunc, "flatten": stdlib.FlattenFunc,
"floor": stdlib.FloorFunc, "floor": stdlib.FloorFunc,
"formatdate": stdlib.FormatDateFunc,
"format": stdlib.FormatFunc, "format": stdlib.FormatFunc,
"formatdate": stdlib.FormatDateFunc,
"formatlist": stdlib.FormatListFunc, "formatlist": stdlib.FormatListFunc,
"greaterthan": stdlib.GreaterThanFunc, "greaterthan": stdlib.GreaterThanFunc,
"greaterthanorequalto": stdlib.GreaterThanOrEqualToFunc, "greaterthanorequalto": stdlib.GreaterThanOrEqualToFunc,
@ -53,10 +53,10 @@ var stdlibFunctions = map[string]function.Function{
"indent": stdlib.IndentFunc, "indent": stdlib.IndentFunc,
"index": stdlib.IndexFunc, "index": stdlib.IndexFunc,
"int": stdlib.IntFunc, "int": stdlib.IntFunc,
"join": stdlib.JoinFunc,
"jsondecode": stdlib.JSONDecodeFunc, "jsondecode": stdlib.JSONDecodeFunc,
"jsonencode": stdlib.JSONEncodeFunc, "jsonencode": stdlib.JSONEncodeFunc,
"keys": stdlib.KeysFunc, "keys": stdlib.KeysFunc,
"join": stdlib.JoinFunc,
"length": stdlib.LengthFunc, "length": stdlib.LengthFunc,
"lessthan": stdlib.LessThanFunc, "lessthan": stdlib.LessThanFunc,
"lessthanorequalto": stdlib.LessThanOrEqualToFunc, "lessthanorequalto": stdlib.LessThanOrEqualToFunc,
@ -70,15 +70,16 @@ var stdlibFunctions = map[string]function.Function{
"modulo": stdlib.ModuloFunc, "modulo": stdlib.ModuloFunc,
"multiply": stdlib.MultiplyFunc, "multiply": stdlib.MultiplyFunc,
"negate": stdlib.NegateFunc, "negate": stdlib.NegateFunc,
"notequal": stdlib.NotEqualFunc,
"not": stdlib.NotFunc, "not": stdlib.NotFunc,
"notequal": stdlib.NotEqualFunc,
"or": stdlib.OrFunc, "or": stdlib.OrFunc,
"parseint": stdlib.ParseIntFunc, "parseint": stdlib.ParseIntFunc,
"pow": stdlib.PowFunc, "pow": stdlib.PowFunc,
"range": stdlib.RangeFunc, "range": stdlib.RangeFunc,
"regexall": stdlib.RegexAllFunc,
"regex": stdlib.RegexFunc,
"regex_replace": stdlib.RegexReplaceFunc, "regex_replace": stdlib.RegexReplaceFunc,
"regex": stdlib.RegexFunc,
"regexall": stdlib.RegexAllFunc,
"replace": stdlib.ReplaceFunc,
"reverse": stdlib.ReverseFunc, "reverse": stdlib.ReverseFunc,
"reverselist": stdlib.ReverseListFunc, "reverselist": stdlib.ReverseListFunc,
"rsadecrypt": crypto.RsaDecryptFunc, "rsadecrypt": crypto.RsaDecryptFunc,

Loading…
Cancel
Save