image

package
v0.0.0-...-1974f2b Latest Latest
Warning

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

Go to latest
Published: May 22, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintAll

func PrintAll(images []Image)

func PrintAllTo

func PrintAllTo(images []Image, writer io.Writer)

Types

type FlushableWriter

type FlushableWriter interface {
	io.Writer
	Flush() (err error)
}

func DefaultWriter

func DefaultWriter() FlushableWriter

func WriterFor

func WriterFor(writer io.Writer) FlushableWriter

type Image

type Image struct {
	Id      string
	Url     string
	Tags    []string
	Data    []byte
	AddedAt *time.Time
	Size    uint64
}

func FromData

func FromData(data []byte) *Image

func FromFile

func FromFile(path string) (*Image, error)

func FromUrl

func FromUrl(url string) (*Image, error)

func (*Image) IsHydrated

func (i *Image) IsHydrated() bool

func (*Image) Print

func (img *Image) Print()

func (*Image) PrintTo

func (img *Image) PrintTo(writer io.Writer, flush bool)

func (*Image) SetAddedAtFromString

func (i *Image) SetAddedAtFromString(addedAt string) (err error)

Jump to

Keyboard shortcuts

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