Composite literal uses unkeyed fields

package main

import "fmt"

func main() {
    m := make(map[string]int)

    m["k1"] = 7
    m["k2"] = 13

    fmt.Println("map:", m)
}
The

program is simple, but there are many such warnings. How to deal with

Mar.28,2021

Please take a closer look at the error file, which gives the path. It's not your program, it's the warning, prompted by some programs in your go library. Your IDE checks some of the library code. It looks like this library is delve a debugger package.

remove your delve package and reinstall it.

Menu