units

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package units parses byte sizes in the binary-suffix grammar a Function's memory hint and funcdctl backup plan's --size and --speed share (ADR-0223): an integer with an optional Ki, Mi, Gi or Ti suffix.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBytes

func ParseBytes(s string) (int64, bool)

ParseBytes parses s ("4Gi", "512Mi", "1024") into bytes; (0, false) on an empty, negative, unparseable or overflowing value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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