mixins

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Thumbnailable

type Thumbnailable struct {
	Image string `pg:"type:varchar(256)"`
}

Thumbnailable mixin to be embedded in a model for an entity with an image to be «thumbnailed»

func (*Thumbnailable) GetThumbnail

func (f *Thumbnailable) GetThumbnail(width, height, quality int) string

GetThumbnail checks if a thumbnail with given params exists or generates it on disk

Jump to

Keyboard shortcuts

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