We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go get github.com/confluentinc/confluent-kafka-go/v2/kafka go: added github.com/confluentinc/confluent-kafka-go/v2 v2.6.1 go build main.go
.\main.go:9:18: undefined: kafka.NewProducer .\main.go:9:37: undefined: kafka.ConfigMap .\main.go:20:16: undefined: kafka.Message .\main.go:33:20: undefined: kafka.Message .\main.go:34:26: undefined: kafka.TopicPartition .\main.go:34:73: undefined: kafka.PartitionAny
go mod init kakaka go get github.com/confluentinc/confluent-kafka-go/v2/kafka go build main.go
Windows 11, Go 1.23.3
The text was updated successfully, but these errors were encountered:
this mod is installed rightly, and I can brwoser the files with ctrl + click in VS Code
Sorry, something went wrong.
I have the same problem, prompting undefined:. But my files are introduced fine, I can ctrl+mouse click into the
sarama work well , bye-bye confluent-kafka-go
Have you solved it?
No branches or pull requests
Description
command-line-arguments
.\main.go:9:18: undefined: kafka.NewProducer
.\main.go:9:37: undefined: kafka.ConfigMap
.\main.go:20:16: undefined: kafka.Message
.\main.go:33:20: undefined: kafka.Message
.\main.go:34:26: undefined: kafka.TopicPartition
.\main.go:34:73: undefined: kafka.PartitionAny
How to reproduce
Windows 11,
Go 1.23.3
The text was updated successfully, but these errors were encountered: