Re: [go-nuts] [compilation|gob] Is it possible to have multiple gob encoding instances?

2024-08-24 Thread gavraz
package B, implying we may fail on the decode at runtime for values encoded prior to the refactor. gavraz On Saturday 24 August 2024 at 17:52:57 UTC+3 Ian Lance Taylor wrote: > On Sat, Aug 24, 2024 at 2:51 AM gavraz wrote: > > > > 1. I attempted to wrap gob with my own packa

Re: [go-nuts] [compilation|gob] Is it possible to have multiple gob encoding instances?

2024-08-24 Thread gavraz
ded up with gob but realized it will be safer to separate the current usages from the new module. Thanks. On Saturday 24 August 2024 at 02:39:23 UTC+3 Ian Lance Taylor wrote: > On Fri, Aug 23, 2024 at 4:26 PM gavraz wrote: > > > > So gob has a Register function that mutates a &quo

[go-nuts] [compilation|gob] Is it possible to have multiple gob encoding instances?

2024-08-23 Thread gavraz
Hey, So gob has a Register function that mutates a "global" state. This implies that a single program cannot have multiple instances with different registrations. I tried to create another module that wraps gob with its own go.mod with a different toolchain then what my program uses hoping that