1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-27 22:38:09 +02:00

Modernize all codes

go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...
This commit is contained in:
phanium
2025-11-12 09:19:27 +08:00
committed by Stefan Haller
parent a7126d5456
commit d88f95275f
20 changed files with 38 additions and 53 deletions

View File

@@ -36,8 +36,8 @@ type TextStyle struct {
}
type Sprinter interface {
Sprint(a ...interface{}) string
Sprintf(format string, a ...interface{}) string
Sprint(a ...any) string
Sprintf(format string, a ...any) string
}
func New() TextStyle {
@@ -46,11 +46,11 @@ func New() TextStyle {
return s
}
func (b TextStyle) Sprint(a ...interface{}) string {
func (b TextStyle) Sprint(a ...any) string {
return b.Style.Sprint(a...)
}
func (b TextStyle) Sprintf(format string, a ...interface{}) string {
func (b TextStyle) Sprintf(format string, a ...any) string {
return b.Style.Sprintf(format, a...)
}