data

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Assets embed.FS
View Source
var Filters embed.FS
View Source
var Pages embed.FS

Functions

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