Though we have refactoring tool to rename the struct field we do not have refactoring tool for deleting the struct field & its usages.
How to safely delete the struct field and its usages[Write & read access] across the files from any IDE that supports golang?
As far as I have seen none of the IDE(vim-go, intellij) supports this.
I had thought of deleting the struct field & run
go vet
which will return all error(along with line number) on every file & write a script to delete those lines but unfortunately vet stops reporting errors after very first error encountered in a file.