为什么它在复合文字中的换行符前显示“缺少',”

Why my vscode is showing this error missing ',' before newline in composite literal

My code:

if title == "" && desc != "" {
            msgs = database.UpdateNotification(&Notify, map[string]interface{}{
                "Description": changedDesc,
            }); msgs != nil {
                log.Info("error while deleting notification")
            }```

So you want to able to change the variable names dynamically?

There isnt any way of doing this. I suggest if you really need somthing like that you would use a Map.

Data     map[String]String

Im not exactly sure what you need this for, or if this helps.