Skip to content

通过分析 AST 一键清除 golang 项目所有 注释

Notifications You must be signed in to change notification settings

zoulux/go-remove-all-comment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-remove-all-comment

可以一键去除项目 go 文件中的注释

$ go install github.com/zoulux/go-remove-all-comment

$ go-remove-all-comment -h                                                                                                                                                                                                                                   (1s)[18:44:53]
Usage of go-remove-all-comment:
-file-dir string
support dir, each file
-file-name string
support one file
-out-dir string
export dir, default empty is origin file
  • -file-name 指定一个 .go 文件,优先级比 file-dir 高
  • -file-dir 指定一个文件夹,会递归下面所有的 .go 文件
  • -out-dir 指定一个导出的文件夹,如果不指定,则会覆盖原来的文件

例子ð:

$ go-remove-all-comment --file-dir /Users/jake/workspace/book/ 

About

通过分析 AST 一键清除 golang 项目所有 注释

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages