Documentation
¶
Overview ¶
mycnf provides access to MySQL configuration files (in .ini format). Based on code from https://gist.github.com/nickcarenza/d847ec24455e70a8609b6602ed528133
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadMyCnf ¶
ReadMyCnf reads a .my.cnf section "profile", fills in missing values in the passed structure, and returns a DSN suitable for use in db.Open(). ReadMyCnf returns an error only if there was an actual error attempting to access the file. Not finding the file or the "profile" within the file is not an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.