我是靠谱客的博主 想人陪猫咪,这篇文章主要介绍mac下-bash: syntax error near unexpected token `(',现在分享给大家,希望可以做个参考。

在使用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:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(128)

评论列表共有 0 条评论

立即
投稿
返回
顶部