From 2349ea6d611142436d32fb2f1e63e628c6b14726 Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Wed, 6 May 2015 23:46:00 -0400 Subject: [PATCH] duration example --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index f707d10..89beb07 100644 --- a/main.go +++ b/main.go @@ -34,6 +34,12 @@ var config struct { default: history.db 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) {