Re: [go-nuts] Re: Making temporary changes to 3rd party modules without breaking go install

2023-02-27 Thread Nick Craig-Wood
This is super annoying - you'll see me in the bug report you linked! The way to work around it is to fork the upstream repo into your own repository, apply the one line patch there, then change all the package lines and go.mod to point to your new repo. After you've done all that then in the

Re: [go-nuts] Best practice for "main.go" to access members of a structure in the real package

2023-02-27 Thread Wojciech S. Czarnecki
Dnia 2023-02-17, o godz. 19:18:23 Pat Farrell napisaƂ(a): > Which is a good start. It works great if I capitalize all the variables. > But I really don't want to make all of the variables in the struct be part > of my public API. then make GetSmth methods on that struct. That will be your pu