fileserver

package
v0.0.0-...-381a539 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

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.

Jump to

Keyboard shortcuts

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