Apply go fmt project wide

This commit is contained in:
ionutboangiu
2022-11-10 16:11:10 +02:00
committed by Dan Christian Bogos
parent 213ade2b22
commit 7771de5e07
131 changed files with 395 additions and 395 deletions

View File

@@ -30,9 +30,9 @@ import (
// use provides a cleaner interface for chaining middleware for single routes.
// Middleware functions are simple HTTP handlers (w http.ResponseWriter, r *http.Request)
//
// r.HandleFunc("/login", use(loginHandler, rateLimit, csrf))
// r.HandleFunc("/form", use(formHandler, csrf))
// r.HandleFunc("/about", aboutHandler)
// r.HandleFunc("/login", use(loginHandler, rateLimit, csrf))
// r.HandleFunc("/form", use(formHandler, csrf))
// r.HandleFunc("/about", aboutHandler)
//
// From https://gist.github.com/elithrar/9146306
// See https://gist.github.com/elithrar/7600878#comment-955958 for how to extend it to suit simple http.Handler's

View File

@@ -43,7 +43,7 @@ func (mk *mockRWC) Close() error {
return nil
}
//Mocking For getting a nil error when the interface argument is nil in encoding
// Mocking For getting a nil error when the interface argument is nil in encoding
type mockReadWriteCloserErrorNilInterface struct {
mockRWC
}