Skip to content

Commit

Permalink
some fixed for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jul 20, 2018
1 parent 1cf98dd commit 0aa898f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import (
"testing"
)

var jsonStr = `
{
var jsonStr = `{
"name": "app",
"debug": true,
"baseKey": "value",
Expand All @@ -25,8 +24,7 @@ var jsonStr = `
"val1",
"val2"
]
}
`
}`

func Example() {
SetOptions(&Options{
Expand Down
2 changes: 1 addition & 1 deletion yaml/yaml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func Example_exportConfig() {

fmt.Printf("export config:\n%s", buf.String())

// Output:
// Out:
// arr1:
// - val1
// - val21
Expand Down

0 comments on commit 0aa898f

Please sign in to comment.