how can I check for a specific error in mattn/go-sqlite3

前端 未结 0 1605
谎友^
谎友^ 2020-11-27 04:37
// https://github.com/mattn/go-sqlite3
sql := "INSERT INTO items(name) VALUES(?)"

stmt, err := db.Prepare(sql)
if err != nil {
    panic(err.Error())
}

d         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题