Peter Bourgon
Peter Bourgon
On second thought that second interface might work. The degenerate case would be ```go type SerializableBytes []byte func (b SerializableBytes) Size() int64 { return len(b) } func (b SerializableBytes) MarshalBinary()...
Could you make your custom structs able to report their serialized size?
We need to know size to be able to abide by CacheSizeMax requirement. I'm not aware of a way to get size of a struct without using unsafe.
No promises, but I would be interested to see what a PR looked like.
I haven't looked into it deeply, but I also think it ought to be feasible. If you want to do a preliminary PR I'd be happy to give it a...
This is cool. I prefer #62, can you run with that?
Do whatever you need to get a working prototype, then we can assess next steps if anything needs to change. I noticed pflag has some "FromGoFlag" adapters, maybe we could...
Looking at this again, I'm reasonably optimistic that there exists a FlagSet abstraction which would be satisfied by the stdlib flag.FlagSet via an adapter, and also permit other implementations like...
So the main thing is that this module must not depend on `pflag` — I'll happily look at anything that satisfies that constraint. I had some thoughts about _how_ to...
`ff` simply shouldn't have a dependency relationship to `pflag` — or any other third-party package, really. It should ideally remain ignorant of anything outside of the stdlib. The current dependencies...