package main import ( "database/sql" "fmt" "github.com/qleelulu/goku/db/mysql" ) func main() { // connect to the MySQL database db, err := sql.Open("mysql", "user:password@tcp(localhost:3306)/dbname") if err != nil { fmt.Println("error connecting to database:", err) return } defer db.Close() // select all rows from a table rows, err := db.Query("SELECT * FROM mytable") if err != nil { fmt.Println("error querying database:", err) return } defer rows.Close() // iterate over the rows and print the data for rows.Next() { var id int64 var name string err = rows.Scan(&id, &name) if err != nil { fmt.Println("error parsing row:", err) return } fmt.Println("id:", id, "name:", name) } if err = rows.Err(); err != nil { fmt.Println("error iterating over rows:", err) return } }This example selects all rows from a table and prints the id and name columns for each row. Overall, the github.com.qleelulu.goku package library is a helpful tool for managing MySQL databases in Go applications.