all repos — homestead @ 20dd619b8605660dac67fa435d711e5f22da3174

Code for my website

ensure reasonable ordering of declarations in source

Alan Pearce
commit

20dd619b8605660dac67fa435d711e5f22da3174

parent

6f41d182abaf1af16fd0cc697abf0f2e9ce54c5c

1 file changed, 2 insertions(+), 2 deletions(-)

changed files
M domain/analytics/goatcounter/count.godomain/analytics/goatcounter/count.go
@@ -14,8 +14,6 @@ "github.com/Southclaws/fault"
"github.com/Southclaws/fault/fmsg" ) -const timeout = 5 * time.Second - type Options struct { URL *config.URL Logger *log.Logger
@@ -46,6 +44,8 @@ type countBody struct {
NoSessions bool `json:"no_sessions"` Hits []hit `json:"hits"` } + +const timeout = 5 * time.Second func New(options *Options) *Goatcounter { baseURL := options.URL