assets

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	// contains filtered or unexported fields
}

FS is assets provider from local filesystem.

func NewFS

func NewFS(root string, logger zerolog.Logger) *FS

NewFS creates new filesystem assets provider.

func (*FS) LoadAsset

func (fs *FS) LoadAsset(ctx context.Context, key string) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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