embed

package
v1.25.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 9

Documentation

Index

Constants

View Source
const Scheme = "embed"

Scheme file URL scheme

Variables

This section is empty.

Functions

func New

func New(options ...storage.Option) storage.Manager

New creates HTTP manager

func Provider

func Provider(options ...storage.Option) (storage.Manager, error)

Provider provider function

Types

type Holder added in v1.25.1

type Holder struct {
	*xunsafe.Slice
	*xunsafe.Appender
	// contains filtered or unexported fields
}

Holder represents embed.fs holder

func NewHolder added in v1.25.1

func NewHolder() *Holder

NewHolder create a fs holder

func (*Holder) Add added in v1.25.1

func (r *Holder) Add(name string, data string)

Add adds file to embed.FS

func (*Holder) EmbedFs added in v1.25.1

func (r *Holder) EmbedFs() *embed.FS

EmbedFs returns *embed.FS

Jump to

Keyboard shortcuts

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