justinmclean opened a new issue, #46:
URL: https://github.com/apache/iggy-website/issues/46

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to