packrfix

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoxExtended

type BoxExtended struct {
	packr.Box
	// contains filtered or unexported fields
}

BoxExtended Extension for packr.Box handling creationTime of box. CreationTime of box is taken as modTime for each file (important for caching resource files in webapps)

func New

func New(originalBox *packr.Box) *BoxExtended

New create new BoxExtended

func (BoxExtended) Open

func (be BoxExtended) Open(name string) (http.File, error)

Open returns a File using the http.File interface

type VariableFileFixed

type VariableFileFixed struct {
	http.File
	// contains filtered or unexported fields
}

VariableFileFixed ...

func (*VariableFileFixed) Close

func (f *VariableFileFixed) Close() error

Close ...

func (VariableFileFixed) Readdir

func (f VariableFileFixed) Readdir(count int) ([]os.FileInfo, error)

Readdir ...

func (*VariableFileFixed) Seek

func (f *VariableFileFixed) Seek(offset int64, whence int) (int64, error)

Seek ...

func (VariableFileFixed) Stat

func (f VariableFileFixed) Stat() (os.FileInfo, error)

Stat ...

func (VariableFileFixed) String

func (f VariableFileFixed) String() string

Jump to

Keyboard shortcuts

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