随笔分类 - go
摘要:1:安装golang数据库操作的第三方数据库操作驱动 sudo go get github.com/go-sql-driver/mysql 2:连接数据库操作函数 Open() – creates a DB连接 Close() - closes the DB连接 函数原型 func Open(dri
阅读全文
摘要:func 的基本构成元素 func (p myType ) funcName ( a, b int , c string ) ( r , s int ) { return } 其中: 关键字———func // 这个是定义函数的关键字 函数拥有者—(p myType) // 这个是此函数的拥有者,下
阅读全文
摘要:I want to check if two structs, slices and maps are equal. But I'm running into problems with the following code. See my comments at the relevant line
阅读全文
浙公网安备 33010602011771号