package bytesext
import "github.com/go-playground/pkg/v5/bytes"
Index ¶
Constants ¶
const ( BYTE = 1 // Decimal (Powers of 10 for Humans) KB = 1000 * BYTE MB = 1000 * KB GB = 1000 * MB TB = 1000 * GB PB = 1000 * TB EB = 1000 * PB ZB = 1000 * EB YB = 1000 * ZB // Binary (Powers of 2 for Computers) KiB = 1024 * BYTE MiB = 1024 * KiB GiB = 1024 * MiB TiB = 1024 * GiB PiB = 1024 * TiB EiB = 1024 * PiB ZiB = 1024 * EiB YiB = 1024 * ZiB )
Common byte unit sizes
Types ¶
type Bytes ¶
type Bytes = int64
Bytes is a type alias to int64 in order to better express the desired data type.
Source Files ¶
- Version
- v5.30.0 (latest)
- Published
- Jun 1, 2024
- Platform
- linux/amd64
- Last checked
- 10 hours ago –
Tools for package owners.