File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11module github.com/y3owk1n/govim
22
3- go 1.21
3+ go 1.25.2
44
55require (
66 github.com/BurntSushi/toml v1.3.2
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ func sendCommand(action string) error {
7676 }
7777
7878 if ! response .Success {
79- return fmt .Errorf (response .Message )
79+ return fmt .Errorf ("%s" , response .Message )
8080 }
8181
8282 fmt .Println (response .Message )
Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ var statusCmd = &cobra.Command{
2323 }
2424
2525 if ! response .Success {
26- return fmt .Errorf (response .Message )
26+ return fmt .Errorf ("%s" , response .Message )
2727 }
2828
2929 // Pretty print the status data
3030 fmt .Println ("GoVim Status:" )
31- if data , ok := response .Data .(map [string ]interface {} ); ok {
31+ if data , ok := response .Data .(map [string ]any ); ok {
3232 if enabled , ok := data ["enabled" ].(bool ); ok {
3333 status := "stopped"
3434 if enabled {
You can’t perform that action at this time.
0 commit comments