func main() { q := "SELECT * FROM happy_fun_times;" var db database // notice this thing db = oracle.New() // implicit casting... same as db := database(oracle.New()) fmt.Println(Query(db, q)) }
func main() { q, db := "SELECT * FROM happy_fun_times;", oracle.New() fmt.Println(Query(db, q)) }