mixins

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTMLBody added in v0.0.15

type HTMLBody struct {
	Body string
}

HTMLBody mixin to get raw html version of the body field

func (*HTMLBody) HtmlBody added in v0.0.15

func (hb *HTMLBody) HtmlBody() template.HTML

HtmlBody todo

type Thumbnailable

type Thumbnailable struct {
	Image string `pg:"type:varchar(256)"`
	// contains filtered or unexported fields
}

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

func (*Thumbnailable) Thumbnail added in v0.0.15

func (th *Thumbnailable) Thumbnail(width, height, quality int) string

Thumbnail 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