package
0.0.0-20250307203412-7e5349ef2bba
Repository: https://github.com/mongodb/mongo-tools.git
Documentation: pkg.go.dev
# Functions
FormatBits takes in a bit (not byte) count and returns a formatted string including units with three total digits (except if it is less than 1k) e.g.
FormatByteAmount takes an int64 representing a size in bytes and returns a formatted string of a minimum amount of significant figures.
FormatMegabyteAmount is equivalent to FormatByteAmount but expects an amount of MB instead of bytes.