随笔分类 -  go

摘要:1:安装golang数据库操作的第三方数据库操作驱动 sudo go get github.com/go-sql-driver/mysql 2:连接数据库操作函数 Open() – creates a DB连接 Close() - closes the DB连接 函数原型 func Open(dri 阅读全文
posted @ 2020-08-20 12:44 loorean 阅读(581) 评论(0) 推荐(0)
摘要:func 的基本构成元素 func (p myType ) funcName ( a, b int , c string ) ( r , s int ) { return } 其中: 关键字———func // 这个是定义函数的关键字 函数拥有者—(p myType) // 这个是此函数的拥有者,下 阅读全文
posted @ 2020-08-17 15:47 loorean 阅读(993) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2020-07-26 10:44 loorean 阅读(199) 评论(0) 推荐(0)