为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:最新
【操作系统】:
【CPU】:2核
【问题描述】*:使用golang连接达梦数据库,引入之后发现编译无法通过…
…/…/…/…/go/pkg/mod/www.github.com/qcozof/gorm-dameng@v0.0.0-20220630030439-37451cd28843/dameng/create.go:130:28: not enough arguments in call to field.Set
have (reflect.Value, interface {})
want (context.Context, reflect.Value, interface {})
…/…/…/…/go/pkg/mod/www.github.com/qcozof/gorm-dameng@v0.0.0-20220630030439-37451cd28843/dameng/dameng.go:55:59: unknown field ‘WithReturning’ in struct literal of type callbacks.Config
是因为在github和gitee上维护了两份代码的原因么?github上面的代码引用了gitee上的代码,导致无法使用?请管理员更新一下代码?
这个问题有解决吗 麻烦告知一下 谢谢
go驱动达梦只在安装包里提供,git上的代码不是官方上传和维护的,建议从达梦安装包里获取新的驱动。