1.3 KiB
1.3 KiB
Sprig Function Documentation
The Sprig library provides over 70 template functions for Go's template language.
- String Functions:
trim,wrap,randAlpha,plural, etc.- String List Functions:
splitList,sortAlpha, etc.
- String List Functions:
- Math Functions:
add,max,mul, etc.- Integer Slice Functions:
until,untilStep
- Integer Slice Functions:
- Date Functions:
now,date, etc. - Defaults Functions:
default,empty,coalesce - Encoding Functions:
b64enc,b64dec, etc. - Lists and List Functions:
list,first,uniq, etc. - Dictionaries and Dict Functions:
dict,hasKey,pluck, etc. - Type Conversion Functions:
atoi,int64,toString, etc. - File Path Functions:
base,dir,ext,clean,isAbs - Flow Control Functions:
fail - Advanced Functions
- UUID Functions:
uuidv4 - OS Functions:
env,expandenv - Version Comparison Functions:
semver,semverCompare - Reflection:
typeOf,kindIs,typeIsLike, etc. - Cryptographic and Security Functions:
derivePassword,sha256sum,genPrivateKey
- UUID Functions: