You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
golog/api_slog.go

22 lines
306 B

package golog
import (
"context"
)
// ApiSLog 接口日志
type ApiSLog struct {
slog struct {
status bool // 状态
client *SLog // 日志服务
}
}
// ApiSLogFun 接口日志驱动
type ApiSLogFun func() *ApiSLog
func NewApiSlog(ctx context.Context) *ApiSLog {
sl := &ApiSLog{}
return sl
}