Commit ab39d3ab authored by Cristian Maglie's avatar Cristian Maglie

Fixed lint warnings

parent b249bb5c
...@@ -61,7 +61,7 @@ func ExampleJSONFormatter_Format() { ...@@ -61,7 +61,7 @@ func ExampleJSONFormatter_Format() {
// float32 ignored // float32 ignored
} }
func ExampleJSONFormatter_Print_debug() { func ExampleJSONFormatter_Format_debug() {
valid := TestStruct{20} valid := TestStruct{20}
invalid := "invalid" invalid := "invalid"
jf := formatter.JSONFormatter{ jf := formatter.JSONFormatter{
...@@ -91,7 +91,7 @@ func ExampleJSONFormatter_Print_debug() { ...@@ -91,7 +91,7 @@ func ExampleJSONFormatter_Print_debug() {
// {"value2":10} <nil> // {"value2":10} <nil>
} }
func ExampleFormat() { func ExampleSetFormatter() {
formatter.SetFormatter("text") formatter.SetFormatter("text")
fmt.Println(formatter.Format(TestStruct{5})) fmt.Println(formatter.Format(TestStruct{5}))
formatter.SetFormatter("json") formatter.SetFormatter("json")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment