MySQL

要啟用 MySQL,需要一個資料庫驅動程式。例如 github.com/go-sql-driver/mysql 。

import (
    "database/sql"
    _ "github.com/go-sql-driver/mysql"
)