Sample Go app
-
Clone this repo using
git clone https://github.com/tokopedia/gosample.git <your-project-name>
. -
cd to and delete the existing git repository by running
rm -rf .git
. -
Initialize a new git repository with
git init
,git add .
andgit commit -m "Initial commit"
. -
Run
dep ensure
to install the dependencies. If you don't have dep, install using homebrew etc. -
Run
go build
and then ./ to start the local web server. -
Go to
http://localhost:9000
and you should see the app running!