Skip to content

Commit

Permalink
fix console writer config bug
Browse files Browse the repository at this point in the history
  • Loading branch information
狂奔的蜗牛 authored and 狂奔的蜗牛 committed Jun 10, 2017
1 parent 65cf3d8 commit 7e6f22d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions writers/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

const (
T_JSON = iota
T_TEXT = iota
T_TEXT
)

type ConsoleWriterConfig struct {
Expand All @@ -26,7 +26,9 @@ type ConsoleWriter struct {
}

func New(config ConsoleWriterConfig) *ConsoleWriter {
return &ConsoleWriter{}
return &ConsoleWriter{
c: config,
}
}
func NewDefault() *ConsoleWriter {
return &ConsoleWriter{
Expand Down
2 changes: 1 addition & 1 deletion writers/files/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

const (
T_JSON = iota
T_TEXT = iota
T_TEXT
)

type FileConfig struct {
Expand Down

0 comments on commit 7e6f22d

Please sign in to comment.