I am working on building a web framework in Go. I have the code locally and would like to use that repo in another module to test that everything works without having to create
When you want to use a local module instead of a remote one, you can achieve that with the replace directive.
In your case, add this to your go.mod file:
go.mod
replace github.com/garrettlove8/goserve => ../goworkspace/src/github.com/garrettlove8/goserve