Skip to content
Public template

About

This is a simple GoLang script template.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

Go script template

This is a simple GoLang script template.

  • CLI example
  • CSV read
  • CSV write
  • net/http

How to run

go run main.go
# or
go run main.go --help

How to create project

  • Add main.go file
  • write the script

Create Go Module

# init mod and go version
go mod init go-script-template
# add module requirements and sums
go mod tidy

More info

GoLang version manager (asdf)

25 Keywords in GoLang

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

https://gobyexample.com/

About

This is a simple GoLang script template.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages