Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Blurhash ¶
func Blurhash(fs foodtinder.FileServer, name string) (string, error)
Blurhash creates the blur hash of the image asset with the given name. If the hash cannot be created for whatever reason, then an empty string is returned. The error may also be nil.
func InMemory ¶
func InMemory(initial map[string][]byte) foodtinder.FileServer
InMemory creates a new in-memory assets server.
func OnDisk ¶
func OnDisk(path string) foodtinder.FileServer
OnDisk returns a new foodtinder.AssetServer that points to an on-disk directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.