generate: document that MaxKey is not fixed over time
@@ -94,6 +94,8 @@ func main() {
l.Write(`import "github.com/twmb/kgo/kbin"`)
l.Write("// Code generated by kgo/generate. DO NOT EDIT.\n")
+ l.Write("// MaxKey is the maximum key used for any messages in this package.")
+ l.Write("// Note that this value may change as Kafka adds more messages.")
l.Write("const MaxKey = %d\n", maxKey)
for _, s := range newStructs {
