[go-nuts] Re: Testing using mock functionality

2021-03-16 Thread Pascal de Kloe
The structure encourages people to use function variables instead of method invocation (on an object or interface). Do the initialisation from main and the unit tests simply mock or stub the relevant calls per method. func Tes

Re: [go-nuts] [ANN] MQTT🤖

2021-03-14 Thread Pascal de Kloe
> > Did you consider using context.Context rather than quit channels? Applying a context.Context pretty much implies using a quit channel. Done is the only way to receive an expiry signal. I just don't want to lock code into using the context package. The context setup is quite viral. For exa

[go-nuts] [ANN] MQTT🤖

2021-03-14 Thread Pascal de Kloe
New MQTT client library + command line tool available. https://github.com/pascaldekloe/mqtt Comments are welcome. -- 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 t