replace zxq.co/ripple/hanayo
This commit is contained in:
21
vendor/github.com/thehowl/conf/example_test.go
generated
vendored
Normal file
21
vendor/github.com/thehowl/conf/example_test.go
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
package conf_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/thehowl/conf"
|
||||
)
|
||||
|
||||
type myConf struct {
|
||||
Name string
|
||||
Age int
|
||||
}
|
||||
|
||||
const myConfString = `Name=Jack
|
||||
Age=19`
|
||||
|
||||
func Example() {
|
||||
c := myConf{}
|
||||
conf.LoadRaw(&c, []byte(myConfString))
|
||||
fmt.Printf("%#v\n", c)
|
||||
}
|
Reference in New Issue
Block a user