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

This commit is contained in:
Kovid Goyal
2022-09-21 08:11:46 +05:30
parent a44c89504b
commit 2cacd7a64a
15 changed files with 37 additions and 37 deletions

View File

@@ -83,7 +83,7 @@ func simple_serializer(rc *utils.RemoteControlCmd) (ans []byte, err error) {
type serializer_func func(rc *utils.RemoteControlCmd) ([]byte, error)
func debug_to_log(args ...interface{}) {
func debug_to_log(args ...any) {
f, err := os.OpenFile("/tmp/kdlog", os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0666)
if err == nil {
fmt.Fprintln(f, args...)