github.com/hashicorp/hcl/v2@v2.20.0/cmd/hcldec/spec_funcs.go (about) 1 // Copyright (c) HashiCorp, Inc. 2 // SPDX-License-Identifier: MPL-2.0 3 4 package main 5 6 import ( 7 "github.com/zclconf/go-cty/cty/function" 8 "github.com/zclconf/go-cty/cty/function/stdlib" 9 ) 10 11 var specFuncs = map[string]function.Function{ 12 "abs": stdlib.AbsoluteFunc, 13 "coalesce": stdlib.CoalesceFunc, 14 "concat": stdlib.ConcatFunc, 15 "hasindex": stdlib.HasIndexFunc, 16 "int": stdlib.IntFunc, 17 "jsondecode": stdlib.JSONDecodeFunc, 18 "jsonencode": stdlib.JSONEncodeFunc, 19 "length": stdlib.LengthFunc, 20 "lower": stdlib.LowerFunc, 21 "max": stdlib.MaxFunc, 22 "min": stdlib.MinFunc, 23 "reverse": stdlib.ReverseFunc, 24 "strlen": stdlib.StrlenFunc, 25 "substr": stdlib.SubstrFunc, 26 "upper": stdlib.UpperFunc, 27 }