Versions in this module Expand all Collapse all v1 v1.0.0 Sep 4, 2018 Changes in this version + var ErrInvalidPos = errors.New("无效的 pos 值") + var ErrUnsupportedWatermarkType = errors.New("不支持的水印类型") + func IsAllowExt(ext string) bool + type Pos int + const BottomLeft + const BottomRight + const Center + const TopLeft + const TopRight + type Watermark struct + func New(path string, padding int, pos Pos) (*Watermark, error) + func (w *Watermark) Mark(src io.ReadWriteSeeker, ext string) (err error) + func (w *Watermark) MarkFile(path string) error