MCPcopy Create free account
hub / github.com/labstack/gommon / Format

Method Format

bytes/bytes.go:49–51  ·  view source on GitHub ↗

Format formats bytes integer to human readable string according to IEC 60027. For example, 31323 bytes will return 30.59KB.

(value int64)

Source from the content-addressed store, hash-verified

47// Format formats bytes integer to human readable string according to IEC 60027.
48// For example, 31323 bytes will return 30.59KB.
49func (b *Bytes) Format(value int64) string {
50 return b.FormatBinary(value)
51}
52
53// FormatBinary formats bytes integer to human readable string according to IEC 60027.
54// For example, 31323 bytes will return 30.59KB.

Callers 3

FormatFunction · 0.80
SendMethod · 0.80
logMethod · 0.80

Calls 1

FormatBinaryMethod · 0.95

Tested by

no test coverage detected