Skip to content

Commit 4cb27fc

Browse files
authored
fix module declaration and remove toml dependency (#178)
1 parent 215739b commit 4cb27fc

File tree

3 files changed

+1
-28
lines changed

3 files changed

+1
-28
lines changed

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
module github.com/natefinch/lumberjack
2-
3-
require github.com/BurntSushi/toml v0.3.1
1+
module gopkg.in/natefinch/lumberjack.v2
42

53
go 1.13

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
2-
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=

lumberjack_test.go

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import (
1010
"path/filepath"
1111
"testing"
1212
"time"
13-
14-
"github.com/BurntSushi/toml"
1513
)
1614

1715
// !!!NOTE!!!
@@ -709,27 +707,6 @@ func TestJson(t *testing.T) {
709707
equals(true, l.Compress, t)
710708
}
711709

712-
func TestToml(t *testing.T) {
713-
data := `
714-
filename = "foo"
715-
maxsize = 5
716-
maxage = 10
717-
maxbackups = 3
718-
localtime = true
719-
compress = true`[1:]
720-
721-
l := Logger{}
722-
md, err := toml.Decode(data, &l)
723-
isNil(err, t)
724-
equals("foo", l.Filename, t)
725-
equals(5, l.MaxSize, t)
726-
equals(10, l.MaxAge, t)
727-
equals(3, l.MaxBackups, t)
728-
equals(true, l.LocalTime, t)
729-
equals(true, l.Compress, t)
730-
equals(0, len(md.Undecoded()), t)
731-
}
732-
733710
// makeTempDir creates a file with a semi-unique name in the OS temp directory.
734711
// It should be based on the name of the test, to keep parallel tests from
735712
// colliding, and must be cleaned up after the test is finished.

0 commit comments

Comments
 (0)