Help us shape the future of Go! Take the 2026 Go Developer Survey

bytesize

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package bytesize parses the byte sizes PiG commands accept, such as 5GiB.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(value string) (int64, error)

Parse reads a non-negative byte count with an optional unit: B, KB, MB, GB (powers of 1000) or KiB, MiB, GiB (powers of 1024), in any letter case. A bare number is bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL