Documentation
¶
Index ¶
Constants ¶
Variables ¶
View Source
var ( Decimal = units.Unit[Size]{ {Byte, []string{"B"}}, {Kilobyte, []string{"kB"}}, {Megabyte, []string{"MB"}}, {Gigabyte, []string{"GB"}}, {Terabyte, []string{"TB"}}, {Petabyte, []string{"PB"}}, } BinaryIEC = units.Unit[Size]{ {Byte, []string{"B"}}, {Kibibyte, []string{"KiB"}}, {Mebibyte, []string{"MiB"}}, {Gibibyte, []string{"GiB"}}, {Tebibyte, []string{"TiB"}}, {Pebibyte, []string{"PiB"}}, } BinaryMemory = units.Unit[Size]{ {Byte, []string{"B"}}, {Kibibyte, []string{"KB"}}, {Mebibyte, []string{"MB"}}, {Gibibyte, []string{"GB"}}, {Tebibyte, []string{"TB"}}, } )
Functions ¶
This section is empty.
Types ¶
type Size ¶
type Size int64
Size defines how we measure digital information (typically in the number of bytes). Digital information refers to any data or content that is represented, stored, or transmitted in a digital format. It is composed of discrete units known as bits, which can be either 0 or 1. Digital information can take various forms, such as text, images, audio, video, or any other type of data that can be encoded and processed electronically.
Click to show internal directories.
Click to hide internal directories.