On Friday, 9 April 2021 at 17:38:12 UTC+2 gonutz wrote:

> I could create a local commit to the library or create a new debug branch 
> in my local copy of the library. Then I insert my debug code and commit it. 
> Then I point my main program's go.mod file at the new commit/branch, adding 
> a replace along the way to use my local copy. Then when I am done debugging 
> I roll everything back. This works but is very annoying for just a 
> temporary print statement here and there.
>

Use the local replace with the v0.0.0-unpublished pseudo-version number, 
then you don't have to commit and roll back all the time.

-- 
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/5519907c-470b-471b-96b5-7610fc4ebb01n%40googlegroups.com.

Reply via email to