Documentation ¶ Index ¶ type Option func WithFrom(fs embed.FS) Option type Options type Source func New(options ...Option) (*Source, error) func (s *Source) Open(name string) (fs.File, error) func (s *Source) ReadFile(name string) ([]byte, error) 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) Source Files ¶ View all Source files embed.gooptions.go Click to show internal directories. Click to hide internal directories.