Skip to content

abcdabcd3899/Dive-Into-Golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dive Into Golang: A Crash Course

Github stars github language license forks

It is the vscode golang project. Please use the linux (not macos) environment to compile and run all of the examples. The more concise the language, the more flexible it becomes.

How to run the project

In ubuntu, I use the vscode to go build, run, go run and clean the project. To make the project easier to use, I created the tasks.json and launch.json files. Using the keyboard shortcut "command + shift + B," you may choose between the commands clean, go build, run, and go run for jobs in tasks.json.

Each options has the following meaning:

  1. go build. It will generate the executable file.
  2. run. It will execute the executable file created by the go build phase.
  3. go run. The go source code will be executed directly in tasks.json.
  4. clean. It will remove all executable files.

To debug the various source codes, press the F5 button.

Outline of Features

In Action

Dependency Management

We use the go module tool in the project to manage dependencies, which is also recommended by the golang community. We may use the following commands to generate the go.mod file for the various source code folds:

go mod init abcdabcd3899

To remove redundant dependencies, we utilize the following method:

go mod tidy

Contribute

Please open pull requests if you want to add new features.

References

  1. Go Spec
  2. GO FAQ
  3. Package
  4. Golang Composition Better Than Inheriance
  5. Mipsmonsta Blog

Agreement

More information document of agreement

Attribution - Non-commercial - No interpretation

About

Golang Programming Solutions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages