assets

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetFile

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

func (*AssetFile) Bytes

func (af *AssetFile) Bytes() []byte

func (*AssetFile) Size

func (af *AssetFile) Size() string

func (*AssetFile) String

func (af *AssetFile) String() string

func (*AssetFile) WriteTo

func (af *AssetFile) WriteTo(w io.Writer) (int64, error)

type Box

type Box struct {
	// contains filtered or unexported fields
}
var Assets *Box

Assets is referenced by the servers file serving.

func New

func New() *Box

func (*Box) MustOpen

func (b *Box) MustOpen(file string) *AssetFile

func (*Box) Open

func (b *Box) Open(file string) (*AssetFile, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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