imgbase64: Index | Files | Directories

package imgbase64

import ""


Package Files


func DefaultImage Uses

func DefaultImage() string

Get Default Image

func FromBuffer Uses

func FromBuffer(buf bytes.Buffer) string

FromBuffer accepts a buffer and returns a base64 encoded string.

func FromLocal Uses

func FromLocal(fname string) (string, error)

FromLocal reads a local file and returns the base64 encoded version.

func FromRemote Uses

func FromRemote(url string) string

FromRemote is a better named function that presently calls NewImage which will be deprecated. Function accepts an RFC compliant URL and returns a base64 encoded result.

func NewImage Uses

func NewImage(url string) string

DEPRECATED Begin a NewImage to fetch TODO: Deprecate NewImage

func SetDefaultImage Uses

func SetDefaultImage(img string)

Set Default Image



Package imgbase64 imports 8 packages (graph) and is imported by 2 packages. Updated 2016-08-03. Refresh now. Tools for package owners.