mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 14:34:52 +02:00
get rid of interface{} since we now require Go 1.18
This commit is contained in:
@@ -11,11 +11,11 @@ type Context struct {
|
||||
AllowEscapeCodes bool
|
||||
}
|
||||
|
||||
func (self *Context) SprintFunc(spec string) func(args ...interface{}) string {
|
||||
func (self *Context) SprintFunc(spec string) func(args ...any) string {
|
||||
p := prefix_for_spec(spec)
|
||||
s := suffix_for_spec(spec)
|
||||
|
||||
return func(args ...interface{}) string {
|
||||
return func(args ...any) string {
|
||||
body := fmt.Sprint(args...)
|
||||
if !self.AllowEscapeCodes {
|
||||
return body
|
||||
|
||||
Reference in New Issue
Block a user