params:=[]interface{}{1,time.Now(),"a"} sql.exex("select count(0) from table where id=:1 and dt<:2 and z<>:3", params...)
See "variadic parameters". -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.