From ae2f87fe8cf95d7ee9e68e7f4619651f2ee27852 Mon Sep 17 00:00:00 2001 From: demoManito <1430482733@qq.com> Date: Tue, 17 Jan 2023 18:12:21 +0800 Subject: [PATCH] reset --- contrib/log/aliyun/aliyun.go | 2 +- transport/http/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/log/aliyun/aliyun.go b/contrib/log/aliyun/aliyun.go index 8d1ef0672..836960e06 100644 --- a/contrib/log/aliyun/aliyun.go +++ b/contrib/log/aliyun/aliyun.go @@ -102,7 +102,7 @@ func (a *aliyunLog) Log(level log.Level, keyvals ...interface{}) error { return a.producer.SendLog(a.opts.project, a.opts.logstore, "", "", logInst) } -// NewAliyunLog new an aliyun logger with options. +// NewAliyunLog new a aliyun logger with options. func NewAliyunLog(options ...Option) Logger { opts := defaultOptions() for _, o := range options { diff --git a/transport/http/server.go b/transport/http/server.go index 343afaea2..8bece9afe 100644 --- a/transport/http/server.go +++ b/transport/http/server.go @@ -127,7 +127,7 @@ func Listener(lis net.Listener) ServerOption { } } -// PathPrefix with mux's PathPrefix, router will be replaced by a subroutine that start with prefix. +// PathPrefix with mux's PathPrefix, router will replaced by a subrouter that start with prefix. func PathPrefix(prefix string) ServerOption { return func(s *Server) { s.router = s.router.PathPrefix(prefix).Subrouter()