An open API service indexing awesome lists of open source software.

https://github.com/gcclinux/golang-learning


https://github.com/gcclinux/golang-learning

Last synced: 9 months ago
JSON representation

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