修复(#105): 消除 goctl 重新生成漂移

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
2026-05-27 23:50:16 -07:00
parent 27986044a1
commit b6d0c89aa1
43 changed files with 2986 additions and 1498 deletions
+35
View File
@@ -0,0 +1,35 @@
package logx
import (
"context"
"log"
)
type Logger interface {
Error(...any)
Errorf(string, ...any)
Info(...any)
Infof(string, ...any)
}
type logger struct{}
func WithContext(context.Context) Logger {
return logger{}
}
func (logger) Error(v ...any) {
log.Print(v...)
}
func (logger) Errorf(format string, v ...any) {
log.Printf(format, v...)
}
func (logger) Info(v ...any) {
log.Print(v...)
}
func (logger) Infof(format string, v ...any) {
log.Printf(format, v...)
}