doc/initial/6-stdlib/99-minor/0-heading.md
raw| 1 | ### Minor changes to the library {#minor_library_changes} |
| 2 | |
| 3 | #### go/types |
| 4 | |
| 5 | The `Var.Kind` method returns an enumeration of type `VarKind` that |
| 6 | classifies the variable (package-level, local, receiver, parameter, |
| 7 | result, or struct field). See issue #70250. |
| 8 | |
| 9 | Callers of `NewVar` or `NewParam` are encouraged to call `Var.SetKind` |
| 10 | to ensure that this attribute is set correctly in all cases. |