imgbase64

package
v0.0.0-...-0747d37 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultImage

func DefaultImage() string

Get Default Image

func FromBuffer

func FromBuffer(buf bytes.Buffer) string

FromBuffer accepts a buffer and returns a base64 encoded string.

func FromLocal

func FromLocal(fname string) (string, error)

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

func FromRemote

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

func NewImage(url string) string

DEPRECATED Begin a NewImage to fetch TODO: Deprecate NewImage

func SetDefaultImage

func SetDefaultImage(img string)

Set Default Image

Types

This section is empty.

Jump to

Keyboard shortcuts

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