image

package
v0.0.0-...-022116b Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type View

type View struct {
	Url        string `json:"url"`
	Alt        string `json:"alt,omitempty"`
	Copyright  string `json:"copyright,omitempty"`
	Dimensions struct {
		Width  int `json:"width"`
		Height int `json:"height"`
	} `json:"dimensions"`
}

An image view

func (*View) AsHtml

func (i *View) AsHtml() string

func (*View) AsText

func (i *View) AsText() string

func (*View) Decode

func (i *View) Decode(enc interface{}) error

func (*View) Ratio

func (i *View) Ratio() float64

Jump to

Keyboard shortcuts

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