able to parse xml
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
package config
|
||||
|
||||
type Badger struct {
|
||||
Debug bool
|
||||
Dir string
|
||||
ValueDir *string
|
||||
Debug bool `toml:"debug"`
|
||||
Dir string `toml:"dir"`
|
||||
ValueDir *string `toml:"value_dir"`
|
||||
}
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
package config
|
||||
|
||||
type Eway struct {
|
||||
SessionID string
|
||||
SessionUser string
|
||||
Contract string
|
||||
Debug bool
|
||||
SessionID string `toml:"session_id"`
|
||||
SessionUser string `toml:"session_user"`
|
||||
OwnerID string `toml:"owner_id"`
|
||||
Debug bool `toml:"debug"`
|
||||
}
|
||||
|
||||
@ -50,6 +50,6 @@ func (l *LogFormat) UnmarshalText(data []byte) (err error) {
|
||||
}
|
||||
|
||||
type Log struct {
|
||||
Level string `json:"level"`
|
||||
Format string `json:"format"`
|
||||
Level string `json:"level" toml:"level"`
|
||||
Format string `json:"format" toml:"format"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user