希望可执行程序增加参数解析flag,来设置根目录路径,配置文件路径等; #59
Closed
Comments
1、项目使用的是beego框架,我只是实现了业务逻辑,您说的这些框架未实现,我也没办法实现。 |
0.4版本已实现。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mindoc --root="/path/to/mindoc" --config="/path/to/mindoc/app.conf"
; golang中进行参数读取还是很简单的,具体请参考标准库https://godoc.org/flag; 必须在项目根目录运行程序,才能正确读取项目静态文件,这有点傻傻的感觉;比如:
mindoc --daemon=true
; 可使用第三方库实现:https://github.com/takama/daemon;The text was updated successfully, but these errors were encountered: