embed

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

Option set Options

func WithFrom

func WithFrom(fs embed.FS) Option

WithFrom set embed.FS

type Options

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

type Source

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

func New

func New(options ...Option) (*Source, error)

New source

func (*Source) Open

func (s *Source) Open(name string) (fs.File, error)

func (*Source) ReadFile

func (s *Source) ReadFile(name string) ([]byte, error)

Jump to

Keyboard shortcuts

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