Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTemplate = "example/template.png"
Variables ¶
This section is empty.
Functions ¶
func Defaulting ¶
func Defaulting(cnf *DrawingConfig, tplImg string)
Types ¶
type BoxTextsOption ¶
type DrawingConfig ¶
type DrawingConfig struct { Template string `json:"template,omitempty"` Title *MultiLineTextOption `json:"title,omitempty"` Category *TextOption `json:"category,omitempty"` Info *TextOption `json:"info,omitempty"` Tags *BoxTextsOption `json:"tags,omitempty"` }
func LoadConfig ¶
func LoadConfig(filename string) (*DrawingConfig, error)
type MultiLineTextOption ¶
type MultiLineTextOption struct { TextOption MaxWidth int `json:"maxWidth,omitempty"` LineSpacing *int `json:"lineSpacing,omitempty"` }
type TextOption ¶
Click to show internal directories.
Click to hide internal directories.