Skip to content

Instantly share code, notes, and snippets.

@mosleim
Created July 24, 2020 16:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mosleim/b20807160c413c5aedc0defefbabf90d to your computer and use it in GitHub Desktop.
Save mosleim/b20807160c413c5aedc0defefbabf90d to your computer and use it in GitHub Desktop.
Golang::Addtags entire files, entire struct in a directory
for file in ./*.go; do
gomodifytags -file "${file##*/}" -all -add-tags gorm,json,bson,form,xml -w
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment