Fix go vet complaints and use go 1.5 for travis
This commit is contained in:
parent
5f78fe6619
commit
084c267112
|
@ -1,7 +1,7 @@
|
||||||
language: go
|
language: go
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- tip
|
- 1.5
|
||||||
|
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
|
|
|
@ -232,11 +232,11 @@ func TestPutEmptyUpload(t *testing.T) {
|
||||||
|
|
||||||
func TestPutJSONUpload(t *testing.T) {
|
func TestPutJSONUpload(t *testing.T) {
|
||||||
type RespJSON struct {
|
type RespJSON struct {
|
||||||
Filename string `json: filename`
|
Filename string
|
||||||
Url string `json: url`
|
Url string
|
||||||
DeleteKey string `json: delete_key`
|
DeleteKey string
|
||||||
Expiry string `json: expiry`
|
Expiry string
|
||||||
Size string `json: size`
|
Size string
|
||||||
}
|
}
|
||||||
var myjson RespJSON
|
var myjson RespJSON
|
||||||
|
|
||||||
|
@ -265,11 +265,11 @@ func TestPutJSONUpload(t *testing.T) {
|
||||||
|
|
||||||
func TestPutRandomizedJSONUpload(t *testing.T) {
|
func TestPutRandomizedJSONUpload(t *testing.T) {
|
||||||
type RespJSON struct {
|
type RespJSON struct {
|
||||||
Filename string `json: filename`
|
Filename string
|
||||||
Url string `json: url`
|
Url string
|
||||||
DeleteKey string `json: delete_key`
|
DeleteKey string
|
||||||
Expiry string `json: expiry`
|
Expiry string
|
||||||
Size string `json: size`
|
Size string
|
||||||
}
|
}
|
||||||
var myjson RespJSON
|
var myjson RespJSON
|
||||||
|
|
||||||
|
@ -299,11 +299,11 @@ func TestPutRandomizedJSONUpload(t *testing.T) {
|
||||||
|
|
||||||
func TestPutExpireJSONUpload(t *testing.T) {
|
func TestPutExpireJSONUpload(t *testing.T) {
|
||||||
type RespJSON struct {
|
type RespJSON struct {
|
||||||
Filename string `json: filename`
|
Filename string
|
||||||
Url string `json: url`
|
Url string
|
||||||
DeleteKey string `json: delete_key`
|
DeleteKey string
|
||||||
Expiry string `json: expiry`
|
Expiry string
|
||||||
Size string `json: size`
|
Size string
|
||||||
}
|
}
|
||||||
var myjson RespJSON
|
var myjson RespJSON
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue