kemalelmizan / didactic-enigma

sample go app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup Go in OSX

  1. Create Directories
mkdir $HOME/Go
mkdir -p $HOME/Go/src/github.com/user
  1. Setup your paths
export GOPATH=$HOME/go
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
  1. Install Go
brew install go
  1. "go get" the basics
go get golang.org/x/tools/cmd/godoc
  1. Start here: https://golang.org/doc/code.html at "your first program"

Sample Go app, Getting started

  1. Clone this repo using git clone https://github.com/tokopedia/gosample.git <your-project-name>.

  2. cd to and delete the existing git repository by running rm -rf .git.

  3. Initialize a new git repository with git init, git add . and git commit -m "Initial commit".

  4. Run go get to install the dependencies.

  5. Run go build and then ./ to start the local web server.

  6. Go to http://localhost:9000 and you should see the app running!

About

sample go app


Languages

Language:Go 86.2%Language:Shell 7.5%Language:DIGITAL Command Language 6.3%