reftools
gopatch
reftools | gopatch | |
---|---|---|
2 | 3 | |
144 | 765 | |
- | 2.5% | |
0.0 | 7.1 | |
about 3 years ago | 4 days ago | |
Go | Go | |
BSD 2-clause "Simplified" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
reftools
-
fixplurals with treesitter
fixplurals CLI is not working correctly for a while. I made a small script with treesitter so I can have this in neovim. Check go.nvim for details.
-
The GoLand team is looking for feedback about running 'go fmt' on save
But these sounds like they would be better fitted as external transformers like eg or gofillstruct
gopatch
-
Rewriting Go source code with AST tooling
This approach is powerful, but also laborious - at least in my experience, it’s too much work for relatively simple transformations.
I generally use gopatch instead. It uses the same mechanism under the hood, but the patch files are much less effort to write.
https://github.com/uber-go/gopatch
- gopatch: a patch-like tool for refactoring
- Gopatch: Patch-like tool for refactoring Go code
What are some alternatives?
goimports - [mirror] Go Tools
go-formatter - A curated list of awesome Go frameworks, libraries and software
intellij-community - IntelliJ IDEA Community Edition & IntelliJ Platform
gomvp - gomvp lets you refactor/rename packages
gofumpt - A stricter gofmt
rclone - "rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
go.nvim - A feature-rich Go development plugin, leveraging gopls, treesitter AST, Dap, and various Go tools to enhance the dev experience.
wild-workouts-go-ddd-example - Go DDD example application. Complete project to show how to apply DDD, Clean Architecture, and CQRS by practical refactoring.