+2
-2
src/config.go
+2
-2
src/config.go
···
166
166
SlowResponseThreshold Duration `toml:"slow-response-threshold" default:"500ms"`
167
167
}
168
168
169
-
func (config *Config) DebugJSON() string {
170
-
result, err := json.MarshalIndent(config, "", " ")
169
+
func (config *Config) TOML() string {
170
+
result, err := toml.Marshal(config)
171
171
if err != nil {
172
172
panic(err)
173
173
}