Files
go-legacy-win7/doc/initial/6-stdlib/99-minor/0-heading.md

11 lines
387 B
Markdown
Raw Normal View History

2024-09-21 23:49:08 +10:00
### Minor changes to the library {#minor_library_changes}
2025-08-13 21:50:03 +07:00
#### go/types
2024-09-21 23:49:08 +10:00
2025-08-13 21:50:03 +07:00
The `Var.Kind` method returns an enumeration of type `VarKind` that
classifies the variable (package-level, local, receiver, parameter,
result, or struct field). See issue #70250.
Callers of `NewVar` or `NewParam` are encouraged to call `Var.SetKind`
to ensure that this attribute is set correctly in all cases.