Versions in this module Expand all Collapse all v0 v0.0.8 Mar 6, 2021 v0.0.7 Feb 28, 2021 Changes in this version + const BodyHeight + const DesignHeight + const DesignWidth + const ImageHeight + const MPGETAccessTokenURL + var C conf + func DrawPoster(s Style) (fileName string, err error) + func GetRandomName(length int) (name string) + func Init() + func RequestQRCode(req QRCodeReq, saveName string, ak string) (string, error) + func ServeHTTP() + type Border struct + Length int + Shape *image.RGBA + Width int + func GetBorder() (b Border, err error) + type MPAccessToken struct + AccessToken string + Errcode int + Errmsg string + ExpiresAt time.Time + ExpiresIn int + func GetMPAccessToken() (MPAccessToken, error) + type Padding struct + Bottom int + Left int + Right int + Top int + type QRCodeReq struct + Page string + Scene string + Width int + type Style struct + BorderColor color.RGBA + Content string + ImageURL string + OutputDIR string + OutputFileName string + QRCodeURL string + Title string