I am surprised this did not come up in the thread. I'm not sure if I never knew 
this was possible or I have forgotten during my time using replace. Turns out, 
that you can import a folder within the same module folder as mod 
identifier/package and it is automatically imported by gopls when you reference 
that package, which never worked with replace.

This allows existing version control tools to be used across languages too. 
Just pull the folder into the root module and away you go.

Being able to reference external folders such as with replace is nice but 
causes issues with gopls and mod updates and possibly erroneous build messages.

I believe there are some documentation bugs. The following does not mention 
this or link to "how to write go code".

https://golang.org/doc/tutorial/getting-started

The following alludes to this functionality, but could make this possibility, a 
lot clearer.

https://golang.org/doc/code.html

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/FCC0571D-11B7-4426-BA75-E9A512EFA46B%40gmail.com.

Reply via email to