update gofight to v2.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-01-01 13:46:30 +08:00
parent 218e3fbddc
commit d6f9d132ea
3 changed files with 12 additions and 11 deletions

8
glide.lock generated
View File

@ -1,5 +1,5 @@
hash: ce7d84552594e98d857bc22c945f0b5512ef909f6e4960614cfa09ab18e1b7d3 hash: 452014b9f7098fdb075926a6b335fceb1d3673f7b77d85ade9b02bc4b992f879
updated: 2017-01-01T13:34:55.969509665+08:00 updated: 2017-01-01T13:46:07.572629753+08:00
imports: imports:
- name: github.com/asdine/storm - name: github.com/asdine/storm
version: d068dc26a6cc4f53186cf51c298c863444148242 version: d068dc26a6cc4f53186cf51c298c863444148242
@ -120,6 +120,8 @@ imports:
- unix - unix
- name: gopkg.in/appleboy/gin-status-api.v1 - name: gopkg.in/appleboy/gin-status-api.v1
version: d41a075a5a6883245b7fdefbefd4fa4d1462e1f1 version: d41a075a5a6883245b7fdefbefd4fa4d1462e1f1
- name: gopkg.in/appleboy/gofight.v2
version: beadc315fb676177c07a89c34159b9ca4e1aafd9
- name: gopkg.in/fukata/golang-stats-api-handler.v1 - name: gopkg.in/fukata/golang-stats-api-handler.v1
version: 90f0b59102629831cc109845475a8d77043412ec version: 90f0b59102629831cc109845475a8d77043412ec
- name: gopkg.in/go-playground/validator.v8 - name: gopkg.in/go-playground/validator.v8
@ -151,5 +153,3 @@ testImports:
- assert - assert
- require - require
- suite - suite
- name: gopkg.in/appleboy/gofight.v1
version: beadc315fb676177c07a89c34159b9ca4e1aafd9

View File

@ -27,6 +27,8 @@ import:
- package: gopkg.in/redis.v5 - package: gopkg.in/redis.v5
version: ^5.1.7 version: ^5.1.7
- package: gopkg.in/yaml.v2 - package: gopkg.in/yaml.v2
- package: gopkg.in/appleboy/gofight.v2
version: ^2.0.0
testImport: testImport:
- package: github.com/buger/jsonparser - package: github.com/buger/jsonparser
- package: github.com/stretchr/testify - package: github.com/stretchr/testify
@ -34,5 +36,3 @@ testImport:
subpackages: subpackages:
- assert - assert
- suite - suite
- package: gopkg.in/appleboy/gofight.v1
version: ^2.0.0

View File

@ -1,16 +1,17 @@
package gorush package gorush
import ( import (
"github.com/appleboy/gorush/config"
"github.com/buger/jsonparser"
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert"
"gopkg.in/appleboy/gofight.v1"
"net/http" "net/http"
"os" "os"
"runtime" "runtime"
"testing" "testing"
"time" "time"
"github.com/appleboy/gorush/config"
"github.com/buger/jsonparser"
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert"
"gopkg.in/appleboy/gofight.v2"
) )
var goVersion = runtime.Version() var goVersion = runtime.Version()