We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
kindOf
1 parent e3bd162 commit c8f3775Copy full SHA for c8f3775
content/docs/reference/templates/functions.md
@@ -1402,12 +1402,13 @@ chaining `index` calls, e.g. `index (index $x 0) 1`.
1402
### kindOf
1403
1404
```
1405
-{{ $kind := kindOf <value> [follow] }}
+{{ $kind := kindOf <value> [indirect] }}
1406
1407
1408
-Returns the kind (that is, type) of the provided value.
+Returns the [kind](https://pkg.go.dev/reflect#Kind) of the provided value.
1409
1410
-If `value` is a pointer, set the `follow` argument to `true` to follow the pointer to the held type.
+If `value` is behind an `interface{}` or pointer, set `indirect` to true to read the inner value. Most applications of
1411
+this function will want to do this.
1412
1413
### len
1414
0 commit comments