Declarations in Go
Published in
4 min readFeb 7, 2022
A declaration names a program entity and specifies some or all of its properties.
In this post, we will talk about various declarations in Go.
- package declaration
- import declaration
- variable declaration
- constant declaration
- function declaration
- type declaration