Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForecastData ¶
type ForecastData struct { Location string Forecast []ForecastRow }
type ForecastRow ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator is a weather picture generator
func NewGenerator ¶
func (*Generator) Generate ¶
func (g *Generator) Generate(data *ForecastData) (*bytes.Buffer, error)
Generate creates a weather forecast picture TODO: Hardcoded generator isn't good. Need to create a template engine. It will also allow users to modify the template
func (*Generator) GenerateDaily ¶
func (g *Generator) GenerateDaily(data *ForecastData) (*bytes.Buffer, error)
type UnicodeBindings ¶
type UnicodeBindings struct {
// contains filtered or unexported fields
}
func LoadBindings ¶
func LoadBindings(path string) (*UnicodeBindings, error)
func (*UnicodeBindings) Get ¶
func (b *UnicodeBindings) Get(s string) string
Click to show internal directories.
Click to hide internal directories.