chore: upgrade Go version to 1.24 and update dependencies (#5499)

This commit is contained in:
Kevin Wan
2026-03-22 18:47:43 +08:00
committed by GitHub
parent 9a6447ab5c
commit ba9c275853
15 changed files with 290 additions and 231 deletions

View File

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

View File

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