feat: 增加NewServerOption
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user