feat: 增加NewServerOption

This commit is contained in:
2026-01-03 13:10:05 +08:00
parent a5597d50b8
commit bdb1f9091f

View File

@@ -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(),