Fix example code in README (#197)
This commit is contained in:
committed by
Thomas Pelletier
parent
2009e44b6f
commit
d01db88be9
@@ -57,9 +57,9 @@ type Config struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
doc := []byte(`
|
doc := []byte(`
|
||||||
[postgres]
|
[Postgres]
|
||||||
user = "pelletier"
|
User = "pelletier"
|
||||||
password = "mypassword"`)
|
Password = "mypassword"`)
|
||||||
|
|
||||||
config := Config{}
|
config := Config{}
|
||||||
toml.Unmarshal(doc, &config)
|
toml.Unmarshal(doc, &config)
|
||||||
|
|||||||
Reference in New Issue
Block a user