Skip to content

Harpreet4u/reddit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Learning GoLang

Useful commands:

  1. go run

  2. go test archive/zip

  3. go build

  4. go fmt

  5. go get code.google.com/p/go.net/websocket

Go is a zero configuration language, no need to maintain build scripts. Follow prescribed directory structure: workspace/

    bin # executable binaries

    pkg # compiled object files

    src # source code

bashrc settings:

  1. set GOPATH to bin and add to PATH in bashrc

  2. Create namespace like github.com/harpreet4u

For executing:

  1. go install

  2. For package hello run as "gocode/bin/hello" or "hello".

Documentation:

use "godoc github.com/harpreet4u/hello"

About

Learning GoLang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages