Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tjcchen/go-practice
📚 Basic syntax repo for programming language GO.
https://github.com/tjcchen/go-practice
Last synced: about 22 hours ago
JSON representation
📚 Basic syntax repo for programming language GO.
- Host: GitHub
- URL: https://github.com/tjcchen/go-practice
- Owner: tjcchen
- License: mit
- Created: 2023-04-23T12:58:29.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-02T03:48:20.000Z (about 1 year ago)
- Last Synced: 2025-02-07T02:03:08.848Z (1 day ago)
- Language: Go
- Homepage:
- Size: 6.33 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## go-practice
Basic syntax repo for programming language GO.## Resources
12 factors: https://12factor.net/## Most Commonly Used Commands
```bash
# compile and run Go program
go run hello.go# module maintenance
go mod xxx # eg: go mod tidy# compile a Go file to binary
go build hello.go # with output directory: go build -o bin/mybinary# execute the binary
./hello# format a Go file
go fmt hello.go# add dependencies to current module and install them
go get dependencies# compile and install packages and dependencies
go install xxx# test packages
go test xxx# run specific go tool
go tool xxx# report likely mistakes in packages, static code checking
go vet hello.go# misc - environment variables
GOOS=linux GOARCH=amd64 go build# misc - full list
$GOROOT/src/go/build/syslist.go
```## License
This project is licensed under the terms of the MIT license.