Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andyollylarkin/00373e4d3e59c36affbdffb34cd88c51 to your computer and use it in GitHub Desktop.
Save andyollylarkin/00373e4d3e59c36affbdffb34cd88c51 to your computer and use it in GitHub Desktop.
go mod edit -module {NEW_MODULE_NAME}
-- rename all imported module
find . -type f -name '*.go' \
-exec sed -i -e 's,{OLD_MODULE},{NEW_MODULE},g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment