Categorygithub.com/AJ2O/golang-gettingstarted
modulepackage
0.0.0-20201130012738-e4a8edacfa7b
Repository: https://github.com/aj2o/golang-gettingstarted.git
Documentation: pkg.go.dev

# README

golang-gettingstarted

Started using Go, mainly following these tutorials below:

Key Concepts Learned

Modules

  • defining a module
  • importing remote modules

Packages

  • defining a package
  • importing packages from remote modules and using them in .go scripts

Functions

  • function definition (parameters, return value)
  • documenting functions
  • making functions available for exporting in a package

Testing

Common Command Line

  • running scripts: go run script.go
  • running tests: go test
  • building packages: go build helper.go
  • creating a module: go mod init module.com/path/name
  • installing a program: go install

# Packages

Package morestrings implements additional functions to manipulate UTF-8 encoded strings, beyond what is provided in the standard "strings" package.