Skip to content

yank1/golang-hellowolrd

Repository files navigation

Standard Go Project Layout

Overview

This is a basic helloworld golang web program , just for personal use. It would provide a GRPC,JSON,Swagger Web Interface.

Quick Start

Requirement

  • Golang 1.7

Compile and Run

Build

git clone https://github.com/yank1/golang-hellowolrd.git
cd golang-hellowolrd
make

Run

./bin/golang-hellowolrd

Access the Helloword by :

Run for develop

go run cmd/main.go

UnitTest

make test

Release

make release # build image and release

Run in Docker/Kubernetes

TODO

docker run *******
kubectl run ********