Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BundleSequence resources.BundleSequence
BundleSequence is the bundle sequence that's used for opening/loading data If you need to use your own bundles, just override it
Functions ¶
func Bytes ¶
Bytes opens a file from the bundle sequence and tries to read all of its contents immediately
Types ¶
type Resource ¶
type Resource struct {
io.ReadCloser
}
Resource is a wrapper for a ReadCloser with some extra sugar
func (Resource) Bytes ¶
Bytes tries to read the file data as bytes Warning: once used, the reader underneath will be closed!
Click to show internal directories.
Click to hide internal directories.