mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 00:20:00 +08:00
chore: upgrade Go version to 1.24 and update dependencies (#5499)
This commit is contained in:
@@ -197,7 +197,7 @@ func (p *printer) print(x reflect.Value) {
|
||||
|
||||
case reflect.Struct:
|
||||
if val, ok := x.Interface().(apitoken.Position); ok {
|
||||
p.printf(val.String())
|
||||
p.printf("%s", val.String())
|
||||
return
|
||||
}
|
||||
t := x.Type()
|
||||
|
||||
@@ -357,7 +357,7 @@ func (w *Writer) Write(opts ...Option) {
|
||||
|
||||
// WriteText writes the text.
|
||||
func (w *Writer) WriteText(text string) {
|
||||
_, _ = fmt.Fprintf(w.tw, text)
|
||||
_, _ = fmt.Fprint(w.tw, text)
|
||||
}
|
||||
|
||||
func (w *Writer) write(opt *option) {
|
||||
|
||||
Reference in New Issue
Block a user