Skip to content

hsadler/golang-learn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang-learn

Learning Golang


Requirements

  • golang
  • Docker

Golang Example Scripts

Based on the "A Tour of Go" language walkthrough

Run single golang example as script

go run examples/array.go

Run all golang example scripts

sh examples/run_examples.sh

Learning Golang with Tests - from this resource

Run tests for all subdirectories recursively

cd learn_with_tests/
go test ./...

Sample JSON API Backend

Run app

from root directory

cd web_app/
sh run_web_app.sh

Run endpoint calls

once app container is running, from root directory

cd web_app/tests/
sh test_server_endpoints.sh