Documentation ¶
Index ¶
- Variables
- func FetchFile(file string) ([]byte, string, error)
- func FetchImage(file string, x int, y int) ([]byte, string, error)
- func LoadFont(fontName string) *truetype.Font
- func ReadFileAndUnmarshal(path string, out interface{}) error
- func SetUtilConfig(config *UtilConfig)
- type Date
- type RGBA
- type Refresher
- type UtilConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Config = &UtilConfig{}
)
Functions ¶
func FetchImage ¶
Like FetchFile, but will resize images and redraw gifs
func ReadFileAndUnmarshal ¶
func SetUtilConfig ¶
func SetUtilConfig(config *UtilConfig)
Types ¶
type Date ¶
func (Date) MarshalJSON ¶
MarshalJSON to ensure consistent date formatting
func (*Date) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for the Date type
type Refresher ¶
type Refresher struct {
// contains filtered or unexported fields
}
func RefresherCreate ¶
type UtilConfig ¶
Click to show internal directories.
Click to hide internal directories.