The Go code on both SDK doc pages does not compile.
docs/sdk/go/intro.mdx imports github.com/apache/iggy/foreign/go, which is a
module path with no package at its root, then calls iggy.NewClient, Login, a
three-argument CreateTopic, and SendMessages with [][]byte. None of those
functions exist in the SDK.
docs/sdk/go/examples.mdx uses the right imports and constructor but omits the
context argument on every call and never calls Connect.
Reproduced by extracting the three snippets into and running go vet:
- intro:
no required module provides package github.com/apache/iggy/foreign/go
- producer and consumer:
not enough arguments in call to cli.LoginUser: have (string, string), want (context.Context, string, string)
Two smaller problems in the same code: stream and topic creation abort on a
second run, and the producer sends ten messages while printing nothing.
The Go code on both SDK doc pages does not compile.
docs/sdk/go/intro.mdximportsgithub.com/apache/iggy/foreign/go, which is amodule path with no package at its root, then calls
iggy.NewClient,Login, athree-argument
CreateTopic, andSendMessageswith[][]byte. None of thosefunctions exist in the SDK.
docs/sdk/go/examples.mdxuses the right imports and constructor but omits thecontext argument on every call and never calls
Connect.Reproduced by extracting the three snippets into and running
go vet:no required module provides package github.com/apache/iggy/foreign/gonot enough arguments in call to cli.LoginUser: have (string, string), want (context.Context, string, string)Two smaller problems in the same code: stream and topic creation abort on a
second run, and the producer sends ten messages while printing nothing.