Documentation ¶
Overview ¶
Example ¶
os.Setenv("MYSQL_USER", "user") os.Setenv("MYSQL_PASSWORD", "pass") os.Setenv("MYSQL_DATABASE", "db") os.Setenv("MYSQL_HOST", "localhost") mysql.Initialize() db := mysql.Conn() db.Begin()
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConnection ¶
func Initialize ¶
func Initialize() (err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.