Back to Developer Roadmap

Variables & Constants

src/data/roadmaps/golang/content/[email protected]

4.0645 B
Original Source

Variables & Constants

Variables store changeable values declared with var or := (short declaration). Constants store unchangeable values declared with const. Variables can be explicitly typed or use type inference. Constants must be compile-time determinable. Both support block declarations and package/function scope.

Visit the following resources to learn more: