Experience with Go workspace

Introduction Go 1.18 added the workspace mode to Go, allowing you to work on multiple modules simultaneously without having to edit the go.mod file. Module is a folder having go.mod file Earlier if you are working with multiple modules the flow would look like below Make the change in module1. Update the go.mod file of module2 with replace directive for your local, unpublished changes. Make the changes in module2. Before pushing to remote remember to remove the replace from the go....

February 10, 2024 · 3 min · 430 words · Rajkumar Gosavi