https://github.com/diptomondal007/go-auto-commenter
A go tool to add comments automatically on all the exported functions in a go project
https://github.com/diptomondal007/go-auto-commenter
ast go golang gotools syntax-tree
Last synced: about 1 year ago
JSON representation
A go tool to add comments automatically on all the exported functions in a go project
- Host: GitHub
- URL: https://github.com/diptomondal007/go-auto-commenter
- Owner: diptomondal007
- License: apache-2.0
- Created: 2021-05-07T07:46:19.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-02-26T16:06:11.000Z (over 4 years ago)
- Last Synced: 2025-03-21T21:51:13.200Z (about 1 year ago)
- Topics: ast, go, golang, gotools, syntax-tree
- Language: Go
- Homepage:
- Size: 2.68 MB
- Stars: 12
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## go-auto-commenter
A Go tool to add comments automatically to all the exported methods.
[](https://www.travis-ci.com/diptomondal007/go-auto-commenter)
[](https://coveralls.io/github/diptomondal007/go-auto-commenter)
[](https://goreportcard.com/report/github.com/diptomondal007/go-auto-commenter)
[](https://opensource.org/licenses/Apache-2.0)
#### Installation
```shell
1. Clone this repo
2. cd to the cloned directory
3. Type ./install in terminal and hit enter
```
#### Uninstallation
```shell
1. Clone this repo
2. cd to the cloned directory
3. Type ./uninstall in terminal and hit enter
```
#### To auto comment all the files in current directory
```shell
autocomment .
```
#### To auto comment all the files of a directory
```shell
autocomment [DIRNAME]
```
#### To auto comment files
```shell
autocomment [FILENAME]...
```
#### Example
##### before ->
```go
func AB() {
}
```
##### after ->
```go
// AB ...
func AB(){
}
```
### License
go-auto-commenter is released under the Apache 2.0 license. See [LICENSE.txt](https://github.com/diptomondal007/go-auto-commenter/blob/main/LICENSE)