Skip to content

Instantly share code, notes, and snippets.

View nkatsaros's full-sized avatar

Nicholas Katsaros nkatsaros

  • Ottawa, Ontario
View GitHub Profile
@nkatsaros
nkatsaros / gokit_exercise.diff
Created August 27, 2018 21:48
Gophercon Sympatico Gokit Exercise
diff --git a/internal/auth/http_server.go b/internal/auth/http_server.go
index a2f993d..0b55ffb 100644
--- a/internal/auth/http_server.go
+++ b/internal/auth/http_server.go
@@ -1,9 +1,12 @@
package auth
import (
+ "context"
"fmt"
@nkatsaros
nkatsaros / auth_extracted.diff
Created August 27, 2018 20:11
gophercon sympatico, auth extracted
diff --git a/cmd/auth/logging.go b/cmd/auth/logging.go
new file mode 100644
index 0000000..712f806
--- /dev/null
+++ b/cmd/auth/logging.go
@@ -0,0 +1,43 @@
+package main
+
+import (
+ "net/http"