github.com/coveo/gotemplate@v2.7.7+incompatible/docs/_functions.md (about) 1 ```text 2 Base go template functions 3 4 and gt le not println 5 call html len or urlquery 6 eq index lt print 7 ge js ne printf 8 9 Data Conversion 10 11 data toHcl toPrettyJson toQuotedTFVars 12 hcl toInternalHcl toPrettyTFVars toTFVars 13 json toJson toQuotedHcl toYaml 14 toBash toPrettyHcl toQuotedJson yaml 15 16 Data Manipulation 17 18 String extract key pluck undef 19 append get keys prepend union 20 array hasKey lenc rest unique 21 bool initial list reverse unset 22 char intersect merge safeIndex values 23 contains isNil omit set without 24 content isSet pick slice 25 dict isZero pickv string 26 27 Logging 28 29 critical error info panic 30 debug fatal notice warning 31 32 Mathematic Bit Operations 33 34 band bor lshift 35 bclear bxor rshift 36 37 Mathematic Fundamental 38 39 add div floor pow trunc 40 cbrt exp mod pow10 41 ceil exp2 modf rem 42 dim expm1 mul sub 43 44 Mathematic Stats 45 46 avg max min 47 48 Mathematic Trigonometry 49 50 acos atanh j1 logb tanh 51 acosh cos jn rad y0 52 asin cosh log sin y1 53 asinh deg log10 sincos yn 54 atan ilogb log1p sinh 55 atan2 j0 log2 tan 56 57 Mathematic Utilities 58 59 abs gamma isInf lgamma sqrt 60 dec hex isNaN nextAfter to 61 frexp hypot ldexp signBit until 62 63 Net 64 65 httpDoc httpGet 66 67 Operating systems functions 68 69 diff home isReadable mode stat 70 exists isDir isWriteable pwd user 71 glob isExecutable lastMod save username 72 group isFile lookPath size 73 74 Other utilities 75 76 center formatList indent mergeList sIndent 77 color id joinLines nIndent splitLines 78 concat iif lorem repeat wrap 79 80 Runtime 81 82 alias categories func getSignature substitute 83 aliases current function include templateNames 84 allFunctions ellipsis functions localAlias templates 85 assert exec getAttributes raise 86 assertWarning exit getMethods run 87 88 Sprig Cryptographic & Security http://masterminds.github.io/sprig/crypto.html 89 90 adler32sum derivePassword genPrivateKey genSignedCert sha256sum 91 buildCustomCert genCA genSelfSignedCert sha1sum 92 93 Sprig Date http://masterminds.github.io/sprig/date.html 94 95 ago dateInZone htmlDate now 96 date dateModify htmlDateInZone toDate 97 98 Sprig Default http://masterminds.github.io/sprig/defaults.html 99 100 coalesce default ternarySprig toPrettyJsonSprig 101 compact empty toJsonSprig 102 103 Sprig Dictionnary http://masterminds.github.io/sprig/dicst.html 104 105 dictSprig listSprig omitSprig setSprig 106 hasKeySprig mergeOverwrite pickSprig unsetSprig 107 keysSprig mergeSprig pluckSprig valuesSprig 108 109 Sprig Encoding http://masterminds.github.io/sprig/encoding.html 110 111 b32dec b32enc b64dec b64enc 112 113 Sprig File Path http://masterminds.github.io/sprig/paths.html 114 115 base clean dir ext isAbs 116 117 Sprig Flow Control http://masterminds.github.io/sprig/flow_control.html 118 119 fail 120 121 Sprig General http://masterminds.github.io/sprig/ 122 123 hello uuidv4 124 125 Sprig List http://masterminds.github.io/sprig/lists.html 126 127 appendSprig initialSprig restSprig uniqSprig 128 first last reverseSprig withoutSprig 129 hasSprig prependSprig sliceSprig 130 131 Sprig Mathematics http://masterminds.github.io/sprig/math.html 132 133 add1 divSprig minSprig round 134 addSprig floorSprig modSprig subSprig 135 ceilSprig maxSprig mulSprig untilStep 136 137 Sprig OS http://masterminds.github.io/sprig/defaults.html 138 139 env expandenv 140 141 Sprig Reflection http://masterminds.github.io/sprig/reflection.html 142 143 kindIs kindOf typeIs typeIsLike typeOf 144 145 Sprig Regex http://masterminds.github.io/sprig/strings.html 146 147 regexFind regexMatch regexReplaceAllLiteral 148 regexFindAll regexReplaceAll regexSplit 149 150 Sprig String Slice http://masterminds.github.io/sprig/string_slice.html 151 152 join split splitn 153 sortAlpha splitList toStrings 154 155 Sprig Strings http://masterminds.github.io/sprig/strings.html 156 157 abbrev initials randAlphaNum substr truncSprig 158 abbrevboth kebabcase randAscii swapcase untitle 159 camelcase lower randNumeric title upper 160 cat nindentSprig repeatSprig toString wrapSprig 161 containsSprig nospace replace trim wrapWith 162 hasPrefix plural shuffle trimAll 163 hasSuffix quote snakecase trimPrefix 164 indentSprig randAlpha squote trimSuffix 165 166 Sprig Type Conversion http://masterminds.github.io/sprig/conversion.html 167 168 atoi float64 int64 intSprig 169 170 Sprig Version comparison http://masterminds.github.io/sprig/semver.html 171 172 semver semverCompare 173 174 ```