data

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Assets embed.FS
View Source
var Icons []byte
View Source
var Pages embed.FS
View Source
var Presets embed.FS
View Source
var Templates embed.FS

Functions

func HashFiles added in v0.31.1

func HashFiles(input ...fs.FS) (string, error)

HashFiles computes a fnv hash of the given filesystems, for cache invalidation purposes

func Walk

func Walk(input fs.FS, suffix string, fn func(string, io.Reader) error) error

Walk warps fs.WalkDir with simpler invocation pattern:

  • only files with a given suffix are passed opened
  • the file is automatically opened and closed
  • only the shortened file name (no folder, no suffix) and io.Reader are passed down

Types

This section is empty.

Jump to

Keyboard shortcuts

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