摘要: ==安装== go get github.com/go-xorm/xorm ==代码== package main import ( "fmt" _ "github.com/go-sql-driver/mysql" "github.com/go-xorm/xorm" ) type PointInfo 阅读全文
posted @ 2022-04-10 20:09 大墨垂杨 阅读(522) 评论(0) 推荐(0) 编辑
摘要: ==问题描述== 如下代码,验证golang的xorm基本用法, 在init中加载了xorm的engine,并赋值给全局变量xe,结果在main中报空指针,提示xe为nil package main import ( "fmt" _ "github.com/go-sql-driver/mysql" 阅读全文
posted @ 2022-04-10 19:27 大墨垂杨 阅读(185) 评论(0) 推荐(0) 编辑