Преглед на файлове

Using vgo

Signed-off-by: Vishal Rana <vr@labstack.com>
Vishal Rana преди 7 години
родител
ревизия
7fd9f68ece
променени са 5 файла, в които са добавени 8 реда и са изтрити 67 реда
  1. 6 13
      .travis.yml
  2. 0 45
      Gopkg.lock
  3. 0 7
      Gopkg.toml
  4. 1 1
      LICENSE
  5. 1 1
      log/log.go

+ 6 - 13
.travis.yml

@@ -1,20 +1,13 @@
 language: go
 go:
-    - 1.7.x
-    - 1.8.x
+    - 1.11.x
     - tip
-before_install:
-    - go get github.com/modocache/gover
-    - go get github.com/mattn/goveralls
-    - go get golang.org/x/tools/cmd/cover
+env:
+  - GO111MODULE=on
 script:
-    - go test -race ./...
-    - go test -coverprofile=color.coverprofile ./color
-    - go test -coverprofile=bytes.coverprofile ./bytes
-    - go test -coverprofile=log.coverprofile ./log
-    - go test -coverprofile=random.coverprofile ./random
-    - gover
-    - goveralls -coverprofile=gover.coverprofile -service=travis-ci
+  - go test -race -coverprofile=coverage.txt -covermode=atomic ./...
+after_success:
+  - bash <(curl -s https://codecov.io/bash)
 matrix:
   allow_failures:
     - go: tip

+ 0 - 45
Gopkg.lock

@@ -1,45 +0,0 @@
-# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
-
-
-[[projects]]
-  name = "github.com/davecgh/go-spew"
-  packages = ["spew"]
-  revision = "5215b55f46b2b919f50a1df0eaa5886afe4e3b3d"
-
-[[projects]]
-  name = "github.com/mattn/go-colorable"
-  packages = ["."]
-  revision = "ed8eb9e318d7a84ce5915b495b7d35e0cfe7b5a8"
-  version = "v0.0.6"
-
-[[projects]]
-  name = "github.com/mattn/go-isatty"
-  packages = ["."]
-  revision = "66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb8"
-
-[[projects]]
-  name = "github.com/pmezard/go-difflib"
-  packages = ["difflib"]
-  revision = "d8ed2627bdf02c080bf22230dbb337003b7aba2d"
-
-[[projects]]
-  name = "github.com/stretchr/testify"
-  packages = ["assert"]
-  revision = "d77da356e56a7428ad25149ca77381849a6a5232"
-
-[[projects]]
-  name = "github.com/valyala/fasttemplate"
-  packages = ["."]
-  revision = "3b874956e03f1636d171bda64b130f9135f42cff"
-
-[[projects]]
-  name = "golang.org/x/sys"
-  packages = ["unix"]
-  revision = "8f0908ab3b2457e2e15403d3697c9ef5cb4b57a9"
-
-[solve-meta]
-  analyzer-name = "dep"
-  analyzer-version = 1
-  inputs-digest = "825b10cb2ba9aefd1ffb3cf26eeaa7315b1484d28cff5e479ebc37708579ffc6"
-  solver-name = "gps-cdcl"
-  solver-version = 1

+ 0 - 7
Gopkg.toml

@@ -1,7 +0,0 @@
-[[constraint]]
-  name = "github.com/mattn/go-colorable"
-  version = "0.0.6"
-
-[prune]
-  go-tests = true
-  unused-packages = true

+ 1 - 1
LICENSE

@@ -1,6 +1,6 @@
 The MIT License (MIT)
 
-Copyright (c) 2015 labstack
+Copyright (c) 2018 labstack
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal

+ 1 - 1
log/log.go

@@ -219,7 +219,7 @@ func (l *Logger) Panic(i ...interface{}) {
 
 func (l *Logger) Panicf(format string, args ...interface{}) {
 	l.log(panicLevel, format, args...)
-	panic(fmt.Sprintf(format, args))
+	panic(fmt.Sprintf(format, args...))
 }
 
 func (l *Logger) Panicj(j JSON) {