Chinese | English
This document is machine translated, if there is any error please correct.
Documenting the journey of learning Golang
, including: basic syntax, algorithms and data structures, frameworks (gin, gorm...) , concurrency, interview questions, design patterns ....
Refer to the introduction section of the catalog for details.
- basic syntax
- web framework: gin(gin , learn more when i have time:beego , iris) gorm grpc zero(distributed)
- middleware: redis mq(rabbitmq)
This part of the current attention is relatively small, the next see a good learning program will continue to update.
- gin-vue-admin
. /
├── Gin_demo Some examples of the gin framework connections.
├── LICENSE
├── NetTest A written question about networking
├── algorithm algorithms, mainly acwing and force buckling
├── bin
├── concurrent-program Concurrent Programming
├─ designPattern Design Patterns
├── exercise some practice questions, including: concurrency, excel tool library, compilation, written test questions
├── gin_demo_qimi gin learning code of qimi
├── gmp gmp model related code
├── go-redis redis operation use
├── go-zero go-zero learning
├── google_go_study A basic syntax exercise to learn golang
├── grpc grpc study
├── log-project A logging library project to learn (unfinished)
├── pkg
├── readme-en.md
├── readme.md
└── web_exercise_qimi qimi of paid video code
-
go env
: Lists the go environment variables. -
go env -w GO111MODULE=on
; the parametere w means setting environment in go environment.This command "set go111module=on" is void.After Go version 1.11, Go introduced modular development with Go Modules enabled by default.GO111MODULE is an environment variable that controls module support and has the following optional values: auto: Automatically enable or disable module support based on the current working directory (default). on: force module support to be enabled, ignoring the current working directory. off: disables module support and will use the old GOPATH mode for development. By executing the go env -w GO111MODULE=off command, you set module support to the disabled state, i.e., development will be done using the old GOPATH mode.
Note that this is a global setting that will affect all your Go projects. If you want to enable module support for a particular project, you can create a file called go.mod in the root directory of that project, or run go mod init to initialize a new module. (Sometimes the command throws an error, so close the terminal and try again.)
-
go get -u XXXX
: Get XXXX package. The -u command updates an installed package or module to the latest version. If the package is already installed, the -u flag will check if the remote repository has the