├── .github └── workflows │ └── go.yml ├── .idea ├── Quality-Code-With-Go.iml ├── modules.xml ├── vcs.xml └── workspace.xml ├── Chapter1 ├── Functional │ └── main.go ├── Functions │ └── main.go ├── Importing-Packages │ └── main.go ├── Object-Oriented │ └── class.py ├── Packages │ ├── Standard-Packages │ │ └── main.go │ └── Third-Party Packages │ │ ├── get.sh │ │ └── main.go ├── Procedural │ └── main.go ├── Run-Go-Code │ └── main.go ├── Statically Typed │ └── main.go └── Variables │ └── Different-Ways-To-Define-Variables │ └── main.go ├── Chapter3 ├── Dependencies │ └── main.go └── Var-Names │ └── main.go ├── Chapter4 ├── AzureSDK │ └── main.go ├── Benchmark-Testing │ ├── main.go │ └── main_test.go ├── Edge-Case │ ├── addition_test.go │ └── main.go └── unit-test-example │ └── main_test.go ├── Chapter5 ├── Dockerfile ├── cloudstatuscheck.go └── cloudstatuscheck_test.go ├── Chapter6 ├── Linting │ ├── golangcilint.md │ └── goversionchecker.go └── Static-Code-Analysis │ ├── .scannerwork │ ├── .sonar_lock │ ├── report-task.txt │ └── sonar-go-to-slang-windows-amd64.exe │ ├── create-docker-instance.md │ └── goversionchecker.go ├── Chapter7 └── godoc.md ├── Chapter8 ├── Create-ContainerGroup │ ├── createcontainergroup.go │ ├── createcontainergroup_benchmark_test.go │ ├── createcontainergroup_integration_test.go │ ├── createcontainergroup_test.go │ ├── go.mod │ └── go.sum └── readme.md ├── LICENSE └── README.md /.github/workflows/go.yml: -------------------------------------------------------------------------------- 1 | name: Go 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | pull_request: 7 | branches: [ master ] 8 | 9 | jobs: 10 | 11 | build: 12 | name: Build 13 | runs-on: ubuntu-latest 14 | env: 15 | working-directory: ./Chapter6/Static-Code-Analysis/ 16 | steps: 17 | 18 | - name: Set up Go 1.x 19 | uses: actions/setup-go@v2 20 | with: 21 | go-version: ^1.15 22 | 23 | - name: Check out code into the Go module directory 24 | uses: actions/checkout@v2 25 | 26 | - name: Build 27 | run: go build -v ./Chapter6/Static-Code-Analysis/ 28 | 29 | - name: Run golangci-lint 30 | uses: golangci/golangci-lint-action@v2 31 | with: 32 | version: v1.29 33 | -------------------------------------------------------------------------------- /.idea/Quality-Code-With-Go.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |