assets

package
Version: v0.0.0-...-3e1fb73 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 4 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL