Documentation ¶
Index ¶
- func Canonical(purpose, name string) string
- func Init() error
- func MoveAwayState(kind StateKind, name string) error
- func ReadDir(purpose string) ([]string, error)
- func ReadState(kind StateKind, name string) ([]byte, error)
- func WriteState(kind StateKind, name string, data []byte) error
- type ReadSeekCloser
- type StateKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Canonical ¶
Canonical returns the canonical name of the given asset. If Canonical returns the same string, Load will load the same asset.
func MoveAwayState ¶
MoveAwayState renames a detected-to-be-broken state file so it will not be used again.
Types ¶
type ReadSeekCloser ¶
ReadSeekCloser is a typical file interface.
Click to show internal directories.
Click to hide internal directories.