pull/2627/head
demoManito 2 years ago
parent 2028948127
commit ae2f87fe8c
  1. 2
      contrib/log/aliyun/aliyun.go
  2. 2
      transport/http/server.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 {

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

Loading…
Cancel
Save