package
0.0.4
Repository: https://github.com/segmentio/topicctl.git
Documentation: pkg.go.dev

# Functions

CopyInts copies a slice of ints.
InTerminal determines whether we're running in a terminal or not.
PrettyDuration returns a human-formatted duration string given an golang duration value.
PrettyRate returns a human-formatted rate from a count and a duration.
RandomString returns a random string with the argument length.
SameElements determines whether two int slices have the same elements (in any order).
ShuffledKeys returns a shuffled version of the keys in the argument map.
SortedKeys returns the keys of the argument, sorted by value.
SortedKeysByValue returns the keys in a map, sorted by the map values.
TestKafkaAddr returns a kafka bootstrap address for unit testing purposes.
TestKafkaConn returns a kafka-go connection for unit testing purposes.
TestKafkaContollerConn returns a kafka-go connection to the cluster controller for unit testing purposes.
TestZKAddr returns a zookeeper address for unit testing purposes.
TruncateStringMiddle truncates a string by replacing characters in the middle with "..." if needed.
TruncateStringSuffix truncates a string by replacing the trailing characters with "..." if needed.

# Type aliases

KeySorter is a type for a function that sorts integer keys based on their values in a map.