units

package
v0.0.0-...-4a11b79 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package units provides common useful printable units.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SizeToString

func SizeToString(s int64) string

SizeToString pretty prints file size (given as number of bytes).

Types

type Size

type Size int64

Size represents a size in bytes that knows how to print itself.

func (*Size) Set

func (s *Size) Set(str string) error

func (Size) String

func (s Size) String() string

Jump to

Keyboard shortcuts

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