https://github.com/gcclinux/golang-learning
https://github.com/gcclinux/golang-learning
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gcclinux/golang-learning
- Owner: gcclinux
- Created: 2022-11-25T13:36:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-03T22:20:41.000Z (about 3 years ago)
- Last Synced: 2025-03-16T12:13:52.300Z (12 months ago)
- Language: Go
- Size: 120 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GOLANG-LEARNING
Install Git-bash as terminal for Windows
Install go from https://go.dev/dl/
Install Visual Studio for any platform
After Visual Studio installed need to intall Go modules
Crtl + Shift + P
> Go: Install/update (select all)
Create Project folder
Enter project folder via Git-Bash command line
Get your GOPATH by following command
$ echo $GOPTAH
Initiate Go modules in project folder
$ go mod init 'myapp' 'name of your application or location like github.com/user/myapp'
Opening Settings short cup
Crtl + ,
File --> Preferences --> Settings
Update Settings
"terminal.integrated.defaultProfile.windows": "Git Bash",
"terminal.external.windowsExec": "C:\\Program Files\\Git\\git-bash.exe",
"terminal.integrated.cwd": "C:\\Users\\ricar\\Desktop\\Nextcloud\\Programming\\GitServer\\golang",
Download godoc modules for references
$ go get golang.org/x/tools/cmd/godoc
$ go install golang.org/x/tools/cmd/godoc
To view godoc initial webserver
$ godoc --http=:6060
Open favour browser browser and open URL
http://localhost:6060