docs: update documents
This commit is contained in:
parent
92458aece2
commit
706896737b
18 changed files with 83 additions and 18 deletions
|
|
@ -136,7 +136,7 @@ func PainterWidthHeightOption(width, height int) PainterOption {
|
|||
}
|
||||
}
|
||||
|
||||
// NewPainter creates a new painter
|
||||
// NewPainter creates a painter
|
||||
func NewPainter(opts PainterOptions, opt ...PainterOption) (*Painter, error) {
|
||||
if opts.Width <= 0 || opts.Height <= 0 {
|
||||
return nil, errors.New("width/height can not be nil")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue