embed

package
v1.30.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 18 Imported by: 4 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) AddFs added in v1.26.0

func (r *Holder) AddFs(fs *embed.FS, path string)

AddFs 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