Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
slim-sprig
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
yocto-mirrors
github
go-task
slim-sprig
Commits
4d8ae002
Commit
4d8ae002
authored
4 years ago
by
Rodrigo Bahiense
Browse files
Options
Downloads
Plain Diff
Resolved conflict with master
parents
26b8e63f
0a555ee3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/index.md
+1
-0
1 addition, 0 deletions
docs/index.md
docs/reflection.md
+1
-1
1 addition, 1 deletion
docs/reflection.md
with
2 additions
and
1 deletion
docs/index.md
+
1
−
0
View file @
4d8ae002
...
...
@@ -20,3 +20,4 @@ The Sprig library provides over 70 template functions for Go's template language
-
[
Version Comparison Functions
](
semver.md
)
:
`semver`
,
`semverCompare`
-
[
Reflection
](
reflection.md
)
:
`typeOf`
,
`kindIs`
,
`typeIsLike`
, etc.
-
[
Cryptographic and Security Functions
](
crypto.md
)
:
`derivePassword`
,
`sha256sum`
,
`genPrivateKey`
, etc.
-
[
Network
](
network.md
)
:
`getHostByName`
This diff is collapsed.
Click to expand it.
docs/reflection.md
+
1
−
1
View file @
4d8ae002
...
...
@@ -18,7 +18,7 @@ kindOf "hello"
```
The above would return
`string`
. For simple tests (like in
`if`
blocks), the
`
isK
ind`
function will let you verify that a value is a particular kind:
`
k
ind
Is
`
function will let you verify that a value is a particular kind:
```
kindIs "int" 123
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment