Documentation ¶
Index ¶
- func Camel2Case(name string) string
- func Case2Camel(name string) string
- func GetMysqlDb() (db *gorm.DB)
- func Lcfirst(str string) string
- func PathExists(path string) (bool, error)
- func Ucfirst(str string) string
- func Write(filename string, Name string, content string, path string) string
- type Buffer
- type MysqlConnectPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMysqlDb ¶
Types ¶
type MysqlConnectPool ¶
type MysqlConnectPool struct { }
* MysqlConnectiPool * 数据库连接操作库 * 基于gorm封装开发
func GetMysqlInstance ¶
func GetMysqlInstance() *MysqlConnectPool
func (*MysqlConnectPool) GetMysqlPool ¶
func (m *MysqlConnectPool) GetMysqlPool() *gorm.DB
* @fuc 对外获取数据库连接对象db
func (*MysqlConnectPool) InitMysqlPool ¶
func (m *MysqlConnectPool) InitMysqlPool() (issucc bool)
* @fuc 初始化数据库连接(可在mail()适当位置调用)
Click to show internal directories.
Click to hide internal directories.