From f4fe6316abf6cb9bf660d6f66f5baf505bc1561c Mon Sep 17 00:00:00 2001 From: dingjun Date: Tue, 10 Sep 2019 14:18:14 +0800 Subject: [PATCH] clean up --- .travis.yml | 11 ----------- Gopkg.lock | 24 ------------------------ Gopkg.toml | 35 ----------------------------------- README.md | 9 ++++----- doc.go | 4 ++-- examples/main.go | 2 +- go.mod | 2 +- go.sum | 7 +++++-- 8 files changed, 13 insertions(+), 81 deletions(-) delete mode 100644 .travis.yml delete mode 100644 Gopkg.lock delete mode 100644 Gopkg.toml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b1fdb76..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: go - -go: - - "1.9" - - "1.10" - -before_install: - - go get github.com/mattn/goveralls - -script: - - $GOPATH/bin/goveralls -v -service=travis-ci -package=github.com/subchen/go-log diff --git a/Gopkg.lock b/Gopkg.lock deleted file mode 100644 index aa7d75a..0000000 --- a/Gopkg.lock +++ /dev/null @@ -1,24 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - branch = "master" - name = "golang.org/x/crypto" - packages = ["ssh/terminal"] - revision = "1a580b3eff7814fc9b40602fd35256c63b50f491" - -[[projects]] - branch = "master" - name = "golang.org/x/sys" - packages = [ - "unix", - "windows" - ] - revision = "7c87d13f8e835d2fb3a70a2912c811ed0c1d241b" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "5d23260104de1fc6bee0a07cb064f1b57081935b7958acdb627d18dd9c80ce02" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml deleted file mode 100644 index 3208079..0000000 --- a/Gopkg.toml +++ /dev/null @@ -1,35 +0,0 @@ -# Gopkg.toml example -# -# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md -# for detailed Gopkg.toml documentation. -# -# required = ["github.com/user/thing/cmd/thing"] -# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] -# -# [[constraint]] -# name = "github.com/user/project" -# version = "1.0.0" -# -# [[constraint]] -# name = "github.com/user/project2" -# branch = "dev" -# source = "github.com/myfork/project2" -# -# [[override]] -# name = "github.com/x/y" -# version = "2.4.0" -# -# [prune] -# non-go = false -# go-tests = true -# unused-packages = true - - -[[constraint]] - name = "golang.org/x/crypto" - branch = "master" - -[prune] - non-go = true - go-tests = true - unused-packages = true diff --git a/README.md b/README.md index ef64c84..e66f666 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ package main import ( "os" "errors" - "github.com/fangdingjun/go-log" + log "github.com/fangdingjun/go-log/v5" ) func main() { @@ -56,8 +56,7 @@ Default log to console, you can set `Logger.Out` to set a file writer into log. ```go import ( - "github.com/fangdingjun/go-log" - "github.com/fangdingjun/go-log/log" + log "github.com/fangdingjun/go-log/v5" ) log.Default.Out = &log.FixedSizeFileWriter{ @@ -107,7 +106,7 @@ io.MultiWriter( ```go import ( - "github.com/fangdingjun/go-log" + log "github.com/fangdingjun/go-log/v5" ) log.Default.Formatter = new(log.TextFormatter) @@ -118,7 +117,7 @@ log.Default.Formatter = new(log.TextFormatter) ```go import ( - "github.com/fangdingjun/go-log" + log "github.com/fangdingjun/go-log/v5" ) func main() { diff --git a/doc.go b/doc.go index 98bba6b..608d5dd 100644 --- a/doc.go +++ b/doc.go @@ -9,7 +9,7 @@ package main import ( "os" - "github.com/fangdingjun/go-log" + log "github.com/fangdingjun/go-log/v5" ) func main() { @@ -31,7 +31,7 @@ You also can config `log.Default` or new `log.Logger` to customize formatter and import ( "os" - "github.com/fangdingjun/go-log" + log "github.com/fangdingjun/go-log/v5" ) func main() { diff --git a/examples/main.go b/examples/main.go index e8e98c3..a92047e 100644 --- a/examples/main.go +++ b/examples/main.go @@ -3,7 +3,7 @@ package main import ( "os" - "github.com/fangdingjun/go-log" + log "github.com/fangdingjun/go-log/v5" ) func main() { diff --git a/go.mod b/go.mod index a442d5c..7b0f2f6 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/fangdingjun/go-log/v5 go 1.13 -require golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 +require golang.org/x/crypto v0.0.0-20190909091759-094676da4a83 diff --git a/go.sum b/go.sum index 982bcf9..e924e8c 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,7 @@ -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 h1:VklqNMn3ovrHsnt90PveolxSbWFaJdECFbxSq0Mqo2M= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a h1:1BGLXjeY4akVXGgbC9HugT3Jv3hCI0z56oJR5vAMgBU= +golang.org/x/crypto v0.0.0-20190909091759-094676da4a83 h1:mgAKeshyNqWKdENOnQsg+8dRTwZFIwFaO3HNl52sweA= +golang.org/x/crypto v0.0.0-20190909091759-094676da4a83/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=