项目作者: rakesh740

项目描述 :
hack
高级语言: Go
项目地址: git://github.com/rakesh740/go-getting-started.git
创建时间: 2018-09-19T20:56:29Z
项目社区:https://github.com/rakesh740/go-getting-started

开源协议:

下载


go-getting-started

A barebones Go app, which can easily be deployed to Heroku.

This application supports the Getting Started with Go on Heroku article - check it out.

Running Locally

Make sure you have Go version 1.12 or newer and the Heroku Toolbelt installed.

  1. $ git clone https://github.com/heroku/go-getting-started.git
  2. $ cd go-getting-started
  3. $ go build -o bin/go-getting-started -v .
  4. github.com/mattn/go-colorable
  5. gopkg.in/bluesuncorp/validator.v5
  6. golang.org/x/net/context
  7. github.com/heroku/x/hmetrics
  8. github.com/gin-gonic/gin/render
  9. github.com/manucorporat/sse
  10. github.com/heroku/x/hmetrics/onload
  11. github.com/gin-gonic/gin/binding
  12. github.com/gin-gonic/gin
  13. github.com/heroku/go-getting-started
  14. $ heroku local

Your app should now be running on localhost:5000.

Deploying to Heroku

  1. $ heroku create
  2. $ git push heroku master
  3. $ heroku open

or

Deploy

Documentation

For more information about using Go on Heroku, see these Dev Center articles: