get rid of interface{} since we now require Go 1.18

This commit is contained in:
Kovid Goyal
2022-11-14 15:42:00 +05:30
parent a44c89504b
commit 2cacd7a64a
15 changed files with 37 additions and 37 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ var _ = fmt.Print
func bash_output_serializer(completions []*Completions, shell_state map[string]string) ([]byte, error) {
output := strings.Builder{}
f := func(format string, args ...interface{}) { fmt.Fprintf(&output, format+"\n", args...) }
f := func(format string, args ...any) { fmt.Fprintf(&output, format+"\n", args...) }
n := completions[0].Delegate.NumToRemove
if n > 0 {
f("compopt +o nospace")
+1 -1
View File
@@ -14,7 +14,7 @@ var _ = fmt.Print
func fish_output_serializer(completions []*Completions, shell_state map[string]string) ([]byte, error) {
output := strings.Builder{}
f := func(format string, args ...interface{}) { fmt.Fprintf(&output, format+"\n", args...) }
f := func(format string, args ...any) { fmt.Fprintf(&output, format+"\n", args...) }
n := completions[0].Delegate.NumToRemove
fm := markup.New(false) // fish freaks out if there are escape codes in the description strings
if n > 0 {
+2 -2
View File
@@ -15,11 +15,11 @@ import (
"kitty/tools/utils"
)
func debug(args ...interface{}) {
func debug(args ...any) {
tty.DebugPrintln(args...)
}
func debugf(format string, args ...interface{}) {
func debugf(format string, args ...any) {
debug(fmt.Sprintf(format, args...))
}