From bc0db73bfee3dbda585b25b4668dd7c0c688bd28 Mon Sep 17 00:00:00 2001 From: Jonathan KUMA Date: Thu, 25 May 2023 09:43:25 +0200 Subject: [PATCH] Fix up code styling with go fmt. --- openapi/doc.go | 1 - server/doc.go | 1 - server/handler.go | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/openapi/doc.go b/openapi/doc.go index 1164663..7e70a41 100644 --- a/openapi/doc.go +++ b/openapi/doc.go @@ -32,6 +32,5 @@ It also provides you with a set of rapidoc handlers to serve a live documentatio }). Error() } - */ package openapi diff --git a/server/doc.go b/server/doc.go index f80f2ff..d7d17ba 100644 --- a/server/doc.go +++ b/server/doc.go @@ -23,6 +23,5 @@ You can see middleware implementation in the github.com/mwm-io/gapi/middleware p if err != nil { log.Fatal(err) } - */ package server diff --git a/server/handler.go b/server/handler.go index 1ae20a0..fe9992d 100644 --- a/server/handler.go +++ b/server/handler.go @@ -13,8 +13,8 @@ import ( // You can use it if you want a new instance of your handler for each call. // It must be use useful if : // -// - you use a middleware for handle request params like middleware.BodyDecoder, middleware.PathParameters, etc. -// - you store properties in your handler struct during Serve process +// - you use a middleware for handle request params like middleware.BodyDecoder, middleware.PathParameters, etc. +// - you store properties in your handler struct during Serve process func AddHandlerFactory(router *mux.Router, method, path string, f handler.Factory) { router.Methods(method). Path(path).