在使用go-xorm将mysql的表结构导出为go 结构体时候,出现如下错误
$ xorm reverse mysql root:123456@tcp(127.0.0.1:3306)/dbname?charset=utf8 templates/goxorm/
-bash: syntax error near unexpected token `('
如上的小括号加上转义字符之后,问题消失
$ xorm reverse mysql root:123456@tcp(127.0.0.1:3306)/dbname?charset=utf8 templates/goxorm/
参考:
https://github.com/go-xorm/cmd
https://github.com/go-sql-driver/mysql
最后
以上就是想人陪猫咪最近收集整理的关于mac下-bash: syntax error near unexpected token `('的全部内容,更多相关mac下-bash:内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复