From bdb1f9091f714fe2d2123a1dffb5a26592b03297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sat, 3 Jan 2026 13:10:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0NewServerOption?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/server.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/router/server.go b/router/server.go index d9352ef..dfe22be 100644 --- a/router/server.go +++ b/router/server.go @@ -31,6 +31,11 @@ import ( "github.com/gin-gonic/gin" ) +// NewServerOption ... +func NewServerOption(port int, optionList ...SetServerOptionFunc) *serverOption { + return newServerOption(port, optionList...) +} + func newServerOption(port int, optionList ...SetServerOptionFunc) *serverOption { option := &serverOption{ swaggerUiTheme: apiDocEnum.SwaggerUIThemeRedocFree.String(),