* 新增Version全局变量

* add test file
This commit is contained in:
guonaihong
2019-12-09 22:08:08 +08:00
committed by GitHub
parent 03c4a7fbb8
commit 4c137caf9e
3 changed files with 14 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
GO ?= go
GO ?= env CGO_ENABLED=0 go
TESTFOLDER := $(shell $(GO) list ./... | grep -v from-xxx-to-gout-doc|grep -v testdata)

3
version.go Normal file
View File

@@ -0,0 +1,3 @@
package gout
const Version = "v0.0.5-dev-2019-12-09"

10
version_test.go Normal file
View File

@@ -0,0 +1,10 @@
package gout
import (
"github.com/stretchr/testify/assert"
"testing"
)
func Test_Version(t *testing.T) {
assert.NotEqual(t, len(Version), 0)
}