mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Apply go fmt project wide
This commit is contained in:
committed by
Dan Christian Bogos
parent
213ade2b22
commit
7771de5e07
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user