Re: [go-nuts] What am I missing here? FYI, I'm completely new to golang xD

2018-09-02 Thread Mhd Shulhan
On Mon, 3 Sep 2018, 13:03 'sebastian andersen' via golang-nuts, < golang-nuts@googlegroups.com> wrote: > This code want's me to believe that I have not declared any of the > variables that I am currently trying to declare: > > func deleteRow() { > db, err := sql.Open("mysql", "root@/testshit")

[go-nuts] What am I missing here? FYI, I'm completely new to golang xD

2018-09-02 Thread 'sebastian andersen' via golang-nuts
This code want's me to believe that I have not declared any of the variables that I am currently trying to declare: func deleteRow() { db, err := sql.Open("mysql", "root@/testshit") checkErr(err) // delete stmt, err = db.Prepare("delete from userinfo where uid=?") checkErr(er