使用go自定义生成项目LISENSE(授权协议)

需要用到一个go开发的工具,叫license,在Windows下安装这个工具,请确保你使用的go sdk是1.16以上的版本,然后执行下面的命令:

go install github.com/nishanths/license/v5@latest

 

接着,转到要生成授权协议的项目所在的根目录,在项目的根目录下执行以下命令:

license -name "fastbpmn" -year 2023 -project "go-study" -o LICENSE bsd-4-clause

当然,你也可以选择其他类型的授权协议,查看授权协议类型列表,执行:license -l

注意:这个命令在cmd下执行,不要在powershell下执行

 

参考资料:

https://github.com/nishanths/license

https://choosealicense.com/

 
posted @ 2023-01-14 05:47  jamstack  阅读(512)  评论(0编辑  收藏  举报