mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 01:08:10 +02:00
get rid of interface{} since we now require Go 1.18
This commit is contained in:
@@ -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...)
|
||||
|
||||
Reference in New Issue
Block a user