/go-practice

Practice problems for golang

Primary LanguageGo

go-practice

Practice problems for golang

Creating the project

From within the project's directory: go mod init github.com/courtney-sims/go-practice within project directory

Running the code

go run bubbleworld/hello.go

Testing

From within the file's directory: go test

  1. Test files have to end in `_test.go``
  2. Test functions have to start with `Test``
  3. Test functions take only the argument t *testing.T

Fun tidbits

  1. %q formatting wraps values in double quotes