Documentation ¶ Index ¶ type Source func New(options ...source.Option) (*Source, error) func (s *Source) GetExtend() source.Scheme func (s *Source) Open(name string) (fs.File, error) func (s *Source) ReadFile(name string) (rb []byte, err error) func (s *Source) Watch(c source.Entity, unm func([]byte, any) error) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Source ¶ type Source struct { // contains filtered or unexported fields } Source is a local file source func New ¶ func New(options ...source.Option) (*Source, error) New returns a new source func (*Source) GetExtend ¶ func (s *Source) GetExtend() source.Scheme GetExtend get extend func (*Source) Open ¶ func (s *Source) Open(name string) (fs.File, error) Open a file for reading func (*Source) ReadFile ¶ func (s *Source) ReadFile(name string) (rb []byte, err error) ReadFile read file func (*Source) Watch ¶ added in v0.1.5 func (s *Source) Watch(c source.Entity, unm func([]byte, any) error) error Source Files ¶ View all Source files local.go Click to show internal directories. Click to hide internal directories.