duration example

master
Jordan Orelli 10 years ago
parent 058ccbefd3
commit 2349ea6d61

@ -34,6 +34,12 @@ var config struct {
default: history.db default: history.db
help: path to a sqlite file used for storing the user's history help: path to a sqlite file used for storing the user's history
` `
Timeout time.Duration `
name: timeout
default: 30s
help: useless timeout value for testing durations
`
} }
func httpHandler(w http.ResponseWriter, r *http.Request) { func httpHandler(w http.ResponseWriter, r *http.Request) {

Loading…
Cancel
Save