Hi Annis99!
If I understand you correctly, this is explained in the book Learning Go, 2nd Edition by Jon Bodner, in Chapter 10: Modules, Packages, and Imports, in the section “Using Workspaces to Modify Modules Simultaneously.”
I dunno if it would be correct to give you the full solution from this book. I believe you can find this chapter.