This is a simple GoLang script template.
- CLI example
- CSV read
- CSV write
- net/http
go run main.go
# or
go run main.go --help
- Add main.go file
- write the script
# init mod and go version
go mod init go-script-template
# add module requirements and sums
go mod tidy
Reference: https://medium.com/wesionary-team/know-about-25-keywords-in-go-eca109855d4d
25 Keywords or Reserved words are the words in a language that are used for some internal process or represent some predefined actions.
All 25 keywords in 4 groups as follows so that we will able to know the purpose of the keyword:
Declaration | Composite Types | Control Flow | Function Modifier | |
---|---|---|---|---|
const | chain | break | goto | defer |
var | interface | case | if | go |
func | map | continue | range | |
type | struct | default | return | |
import | else | select | ||
package | fallthrough | switch | ||
for |