1 2 3 4 5 6 7 8 9 10 11 12
package topic import "fmt" type TopicPartition struct { Topic Partition } func (tp *TopicPartition) TopicPartitionId() string { return fmt.Sprintf("%v.%v-%04d-%04d", tp.Namespace, tp.Topic, tp.RangeStart, tp.RangeStop) }