@@ -36,7 +36,7 @@ func createBindingsIfNotExist(fname string) {
3636
3737// InitBindings intializes the bindings map by reading from bindings.json
3838func InitBindings () {
39- var parsed map [string ]interface {}
39+ var parsed map [string ]any
4040
4141 filename := filepath .Join (config .ConfigDir , "bindings.json" )
4242 createBindingsIfNotExist (filename )
@@ -66,7 +66,7 @@ func InitBindings() {
6666 switch val := v .(type ) {
6767 case string :
6868 BindKey (k , val , Binder ["buffer" ])
69- case map [string ]interface {} :
69+ case map [string ]any :
7070 bind , ok := Binder [k ]
7171 if ! ok || bind == nil {
7272 screen .TermMessage (fmt .Sprintf ("%s is not a valid pane type" , k ))
@@ -265,7 +265,7 @@ func eventsEqual(e1 Event, e2 Event) bool {
265265// Returns true if the keybinding already existed and a possible error
266266func TryBindKey (k , v string , overwrite bool ) (bool , error ) {
267267 var e error
268- var parsed map [string ]interface {}
268+ var parsed map [string ]any
269269
270270 filename := filepath .Join (config .ConfigDir , "bindings.json" )
271271 createBindingsIfNotExist (filename )
@@ -318,7 +318,7 @@ func TryBindKey(k, v string, overwrite bool) (bool, error) {
318318// UnbindKey removes the binding for a key from the bindings.json file
319319func UnbindKey (k string ) error {
320320 var e error
321- var parsed map [string ]interface {}
321+ var parsed map [string ]any
322322
323323 filename := filepath .Join (config .ConfigDir , "bindings.json" )
324324 createBindingsIfNotExist (filename )
0 commit comments