From 15c14f029a2e8fcaf85e7eb561a5447ce75da217 Mon Sep 17 00:00:00 2001 From: kooksee Date: Mon, 30 Oct 2023 22:27:14 +0800 Subject: [PATCH] fix --- opendoc/swagger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendoc/swagger.go b/opendoc/swagger.go index b161bdc..b018ae2 100644 --- a/opendoc/swagger.go +++ b/opendoc/swagger.go @@ -38,7 +38,7 @@ func (s *Swagger) ServiceOf(name string, cb func(srv *Service)) { cb(srv) } -func (s *Swagger) Service() *Service { +func (s *Swagger) WithService() *Service { var srv = new(Service) srv.prefix = s.rootPath s.Routers = append(s.Routers, srv)