From b0910cb0272ccac2f0e7a18b7605940c69450dec Mon Sep 17 00:00:00 2001 From: Tom Andrade Date: Fri, 3 Feb 2023 10:39:42 +0100 Subject: [PATCH] chore: move var to after type definitions --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 71da8a0..78f9a72 100644 --- a/main.go +++ b/main.go @@ -14,15 +14,15 @@ import ( "github.com/gorilla/mux" ) -// Global counter -var C counter - // Counter mutex for counter type counter struct { mu sync.Mutex n int } +// Global counter +var C counter + // Add value to counter func (c *counter) Add() { c.mu.Lock()