[mirror] Scalable static site server for Git forges (like GitHub Pages)

Use TOML output for `-print-config` instead of JSON.

This is much easier to read, and can be used as a template for
a new configuration.

Changed files
+3 -3
src
+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 }
+1 -1
src/main.go
··· 269 269 } 270 270 271 271 if *printConfig { 272 - fmt.Println(config.DebugJSON()) 272 + fmt.Println(config.TOML()) 273 273 return 274 274 } 275 275