megabytes

package module
v0.0.0-...-f4f0321 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2017 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Megabytes

type Megabytes struct {
	Value uint64
}

Megabytes - Megabytes value.

func (*Megabytes) Bytes

func (mb *Megabytes) Bytes() uint64

Bytes - Returns size in bytes.

func (*Megabytes) Set

func (mb *Megabytes) Set(value string) (err error)

Set - Parses value using https://godoc.org/github.com/pivotal-golang/bytefmt#ToMegabytes and sets as struct value.

func (*Megabytes) String

func (mb *Megabytes) String() string

String - Returns string representation of underlying value.

Jump to

Keyboard shortcuts

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