The MrAndreID/GoMiddleware
package is a collection of functions in the go language.
To use The MrAndreID/GoMiddleware
package, you must follow the steps below:
go get -u github.com/MrAndreID/gomiddleware
To use The MrAndreID/GoMiddleware
package, you must combine it with The gorilla/mux
package.
router := mux.NewRouter().StrictSlash(true)
router.Handle("/api/v1/", gomiddleware.Log(Documentation)).Methods("GET")
router := mux.NewRouter().StrictSlash(true)
router.Handle("/api/v1/", gomiddleware.Acceptable(Documentation)).Methods("POST")
router := mux.NewRouter().StrictSlash(true)
router.Handle("/api/v1/", gomiddleware.ClientID(Documentation)).Methods("POST")
router := mux.NewRouter().StrictSlash(true)
router.Handle("/api/v1/", gomiddleware.Timestamp(Documentation)).Methods("POST")
router := mux.NewRouter().StrictSlash(true)
router.Handle("/api/v1/", gomiddleware.AppID(Documentation)).Methods("POST")
router := mux.NewRouter().StrictSlash(true)
router.Handle("/api/v1/", gomiddleware.PrivateKey(Documentation)).Methods("POST")
router := mux.NewRouter().StrictSlash(true)
router.Handle("/api/v1/", gomiddleware.ContentType(Documentation)).Methods("POST")
I use SemVer for versioning. For the versions available, see the tags on this repository.
Andrea Adam - MrAndreID
MIT licensed. See the LICENSE file for details.
Documentation for Go Language can be found on the Go Language website.
Documentation can be found on https://go.dev/.