Debian Codegraph @

docs/index.md

raw
1 # Sprig Function Documentation
2
3 The Sprig library provides over 70 template functions for Go's template language.
4
5 - [String Functions](strings.md): `trim`, `wrap`, `randAlpha`, `plural`, etc.
6 - [String List Functions](string_slice.md): `splitList`, `sortAlpha`, etc.
7 - [Integer Math Functions](math.md): `add`, `max`, `mul`, etc.
8 - [Integer Slice Functions](integer_slice.md): `until`, `untilStep`
9 - [Float Math Functions](mathf.md): `addf`, `maxf`, `mulf`, etc.
10 - [Date Functions](date.md): `now`, `date`, etc.
11 - [Defaults Functions](defaults.md): `default`, `empty`, `coalesce`, `fromJson`, `toJson`, `toPrettyJson`, `toRawJson`, `ternary`
12 - [Encoding Functions](encoding.md): `b64enc`, `b64dec`, etc.
13 - [Lists and List Functions](lists.md): `list`, `first`, `uniq`, etc.
14 - [Dictionaries and Dict Functions](dicts.md): `get`, `set`, `dict`, `hasKey`, `pluck`, `dig`, `deepCopy`, etc.
15 - [Type Conversion Functions](conversion.md): `atoi`, `int64`, `toString`, etc.
16 - [Path and Filepath Functions](paths.md): `base`, `dir`, `ext`, `clean`, `isAbs`, `osBase`, `osDir`, `osExt`, `osClean`, `osIsAbs`
17 - [Flow Control Functions](flow_control.md): `fail`
18 - Advanced Functions
19 - [UUID Functions](uuid.md): `uuidv4`
20 - [OS Functions](os.md): `env`, `expandenv`
21 - [Version Comparison Functions](semver.md): `semver`, `semverCompare`
22 - [Reflection](reflection.md): `typeOf`, `kindIs`, `typeIsLike`, etc.
23 - [Cryptographic and Security Functions](crypto.md): `derivePassword`, `sha256sum`, `genPrivateKey`, etc.
24 - [Network](network.md): `getHostByName`