func()

in filesource.go [52:63]


func (s *SourceFS) File(path string) FileContent {
	return func(_ context.Context, _ Scope, w io.Writer) error {
		f, err := s.FS.Open(path)
		if err != nil {
			return err
		}
		defer f.Close()

		_, err = io.Copy(w, f)
		return err
	}
}