Preparing report...

Report for github.com/LibiChai/wechat

A+    Excellent!    Found 27 issues across 52 files

Tweet

gofmt98%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo98%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign48%

IneffAssign detects ineffectual assignments in Go code.

    • wechat/menu/menu.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/silenceper/wechat/context (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/silenceper/wechat/util (invalid package name: "") (ineffassign)
    • Line 123: warning: menu.GetAccessToken undefined (type *Menu has no field or method GetAccessToken) (ineffassign)
    • Line 144: warning: menu.GetAccessToken undefined (type *Menu has no field or method GetAccessToken) (ineffassign)
    • Line 158: warning: resMenu.ErrCode undefined (type ResMenu has no field or method ErrCode) (ineffassign)
    • Line 159: warning: resMenu.ErrCode undefined (type ResMenu has no field or method ErrCode) (ineffassign)
    • Line 159: warning: resMenu.ErrMsg undefined (type ResMenu has no field or method ErrMsg) (ineffassign)
    • Line 167: warning: menu.GetAccessToken undefined (type *Menu has no field or method GetAccessToken) (ineffassign)
    • Line 182: warning: menu.GetAccessToken undefined (type *Menu has no field or method GetAccessToken) (ineffassign)
    • Line 203: warning: menu.GetAccessToken undefined (type *Menu has no field or method GetAccessToken) (ineffassign)
    • Line 224: warning: menu.GetAccessToken undefined (type *Menu has no field or method GetAccessToken) (ineffassign)
    • Line 240: warning: resMenuTryMatch.ErrCode undefined (type resMenuTryMatch has no field or method ErrCode) (ineffassign)
    • Line 241: warning: resMenuTryMatch.ErrCode undefined (type resMenuTryMatch has no field or method ErrCode) (ineffassign)
    • Line 241: warning: resMenuTryMatch.ErrMsg undefined (type resMenuTryMatch has no field or method ErrMsg) (ineffassign)
    • Line 251: warning: menu.GetAccessToken undefined (type *Menu has no field or method GetAccessToken) (ineffassign)
    • Line 265: warning: resSelfMenuInfo.ErrCode undefined (type ResSelfMenuInfo has no field or method ErrCode) (ineffassign)
    • Line 266: warning: resSelfMenuInfo.ErrCode undefined (type ResSelfMenuInfo has no field or method ErrCode) (ineffassign)
    • Line 266: warning: resSelfMenuInfo.ErrMsg undefined (type ResSelfMenuInfo has no field or method ErrMsg) (ineffassign)
    • wechat/examples/beego/beego.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/astaxie/beego (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/astaxie/beego/context (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/silenceper/wechat (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/silenceper/wechat/message (invalid package name: "") (ineffassign)
    • wechat/context/context.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/silenceper/wechat/cache (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/silenceper/wechat/cache (invalid package name: "") (ineffassign)
    • wechat/examples/http/http.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/silenceper/wechat (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/silenceper/wechat/message (invalid package name: "") (ineffassign)
    • wechat/js/js.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/silenceper/wechat/context (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/silenceper/wechat/util (invalid package name: "") (ineffassign)
    • Line 57: warning: js.AppID undefined (type *Js has no field or method AppID) (ineffassign)
    • Line 66: warning: js.GetJsAPITicketLock undefined (type *Js has no field or method GetJsAPITicketLock) (ineffassign)
    • Line 67: warning: js.GetJsAPITicketLock undefined (type *Js has no field or method GetJsAPITicketLock) (ineffassign)
    • Line 70: warning: js.AppID undefined (type *Js has no field or method AppID) (ineffassign)
    • Line 71: warning: js.Cache undefined (type *Js has no field or method Cache) (ineffassign)
    • Line 88: warning: js.GetAccessToken undefined (type *Js has no field or method GetAccessToken) (ineffassign)
    • Line 100: warning: ticket.ErrCode undefined (type resTicket has no field or method ErrCode) (ineffassign)
    • Line 101: warning: ticket.ErrCode undefined (type resTicket has no field or method ErrCode) (ineffassign)
    • Line 101: warning: ticket.ErrMsg undefined (type resTicket has no field or method ErrMsg) (ineffassign)
    • Line 105: warning: js.AppID undefined (type *Js has no field or method AppID) (ineffassign)
    • Line 107: warning: js.Cache undefined (type *Js has no field or method Cache) (ineffassign)
    • wechat/miniprogram/analysis.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/silenceper/wechat/util (invalid package name: "") (ineffassign)
    • Line 36: warning: wxa.GetAccessToken undefined (type *MiniProgram has no field or method GetAccessToken) (ineffassign)
    • Line 73: warning: result.ErrCode undefined (type ResAnalysisRetain has no field or method ErrCode) (ineffassign)
    • Line 74: warning: result.ErrCode undefined (type ResAnalysisRetain has no field or method ErrCode) (ineffassign)
    • Line 74: warning: result.ErrMsg undefined (type ResAnalysisRetain has no field or method ErrMsg) (ineffassign)
    • Line 121: warning: result.ErrCode undefined (type ResAnalysisDailySummary has no field or method ErrCode) (ineffassign)
    • Line 122: warning: result.ErrCode undefined (type ResAnalysisDailySummary has no field or method ErrCode) (ineffassign)
    • Line 122: warning: result.ErrMsg undefined (type ResAnalysisDailySummary has no field or method ErrMsg) (ineffassign)
    • Line 157: warning: result.ErrCode undefined (type ResAnalysisVisitTrend has no field or method ErrCode) (ineffassign)
    • Line 158: warning: result.ErrCode undefined (type ResAnalysisVisitTrend has no field or method ErrCode) (ineffassign)
    • Line 158: warning: result.ErrMsg undefined (type ResAnalysisVisitTrend has no field or method ErrMsg) (ineffassign)
    • Line 219: warning: result.ErrCode undefined (type ResAnalysisUserPortrait has no field or method ErrCode) (ineffassign)
    • Line 220: warning: result.ErrCode undefined (type ResAnalysisUserPortrait has no field or method ErrCode) (ineffassign)
    • Line 220: warning: result.ErrMsg undefined (type ResAnalysisUserPortrait has no field or method ErrMsg) (ineffassign)
    • Line 260: warning: result.ErrCode undefined (type ResAnalysisVisitDistribution has no field or method ErrCode) (ineffassign)
    • Line 261: warning: result.ErrCode undefined (type ResAnalysisVisitDistribution has no field or method ErrCode) (ineffassign)
    • Line 261: warning: result.ErrMsg undefined (type ResAnalysisVisitDistribution has no field or method ErrMsg) (ineffassign)
    • Line 300: warning: result.ErrCode undefined (type ResAnalysisVisitPage has no field or method ErrCode) (ineffassign)
    • Line 301: warning: result.ErrCode undefined (type ResAnalysisVisitPage has no field or method ErrCode) (ineffassign)
    • Line 301: warning: result.ErrMsg undefined (type ResAnalysisVisitPage has no field or method ErrMsg) (ineffassign)
    • wechat/context/qy_access_token.go
    • Line 67: warning: resQyAccessToken.ErrCode undefined (type ResQyAccessToken has no field or method ErrCode) (ineffassign)
    • Line 68: warning: resQyAccessToken.ErrCode undefined (type ResQyAccessToken has no field or method ErrCode) (ineffassign)
    • Line 68: warning: resQyAccessToken.ErrMsg undefined (type ResQyAccessToken has no field or method ErrMsg) (ineffassign)
    • Line 67: warning: resQyAccessToken.ErrCode undefined (type ResQyAccessToken has no field or method ErrCode) (ineffassign)
    • Line 68: warning: resQyAccessToken.ErrCode undefined (type ResQyAccessToken has no field or method ErrCode) (ineffassign)
    • Line 68: warning: resQyAccessToken.ErrMsg undefined (type ResQyAccessToken has no field or method ErrMsg) (ineffassign)
    • wechat/oauth/oauth.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/silenceper/wechat/context (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/silenceper/wechat/util (invalid package name: "") (ineffassign)
    • Line 38: warning: oauth.AppID undefined (type *Oauth has no field or method AppID) (ineffassign)
    • Line 44: warning: oauth.AppID undefined (type *Oauth has no field or method AppID) (ineffassign)
    • Line 74: warning: oauth.AppID undefined (type *Oauth has no field or method AppID) (ineffassign)
    • Line 74: warning: oauth.AppSecret undefined (type *Oauth has no field or method AppSecret) (ineffassign)
    • Line 84: warning: result.ErrCode undefined (type ResAccessToken has no field or method ErrCode) (ineffassign)
    • Line 85: warning: result.ErrCode undefined (type ResAccessToken has no field or method ErrCode) (ineffassign)
    • Line 85: warning: result.ErrMsg undefined (type ResAccessToken has no field or method ErrMsg) (ineffassign)
    • Line 93: warning: oauth.AppID undefined (type *Oauth has no field or method AppID) (ineffassign)
    • Line 103: warning: result.ErrCode undefined (type ResAccessToken has no field or method ErrCode) (ineffassign)
    • Line 104: warning: result.ErrCode undefined (type ResAccessToken has no field or method ErrCode) (ineffassign)
    • Line 104: warning: result.ErrMsg undefined (type ResAccessToken has no field or method ErrMsg) (ineffassign)
    • Line 158: warning: result.ErrCode undefined (type UserInfo has no field or method ErrCode) (ineffassign)
    • Line 159: warning: result.ErrCode undefined (type UserInfo has no field or method ErrCode) (ineffassign)
    • Line 159: warning: result.ErrMsg undefined (type UserInfo has no field or method ErrMsg) (ineffassign)
    • wechat/examples/gin/gin.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/gin-gonic/gin (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/silenceper/wechat (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/silenceper/wechat/message (invalid package name: "") (ineffassign)
    • wechat/material/media.go
    • Line 43: warning: material.GetAccessToken undefined (type *Material has no field or method GetAccessToken) (ineffassign)
    • Line 58: warning: media.ErrCode undefined (type Media has no field or method ErrCode) (ineffassign)
    • Line 59: warning: media.ErrCode undefined (type Media has no field or method ErrCode) (ineffassign)
    • Line 59: warning: media.ErrMsg undefined (type Media has no field or method ErrMsg) (ineffassign)
    • Line 69: warning: material.GetAccessToken undefined (type *Material has no field or method GetAccessToken) (ineffassign)
    • Line 87: warning: material.GetAccessToken undefined (type *Material has no field or method GetAccessToken) (ineffassign)
    • Line 103: warning: image.ErrCode undefined (type resMediaImage has no field or method ErrCode) (ineffassign)
    • Line 104: warning: image.ErrCode undefined (type resMediaImage has no field or method ErrCode) (ineffassign)
    • Line 104: warning: image.ErrMsg undefined (type resMediaImage has no field or method ErrMsg) (ineffassign)
    • wechat/pay/pay.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/silenceper/wechat/context (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/silenceper/wechat/util (invalid package name: "") (ineffassign)
    • Line 93: warning: pcf.AppID undefined (type *Pay has no field or method AppID) (ineffassign)
    • Line 95: warning: pcf.PayMchID undefined (type *Pay has no field or method PayMchID) (ineffassign)
    • Line 97: warning: pcf.PayNotifyURL undefined (type *Pay has no field or method PayNotifyURL) (ineffassign)
    • Line 104: warning: pcf.PayKey undefined (type *Pay has no field or method PayKey) (ineffassign)
    • Line 108: warning: pcf.AppID undefined (type *Pay has no field or method AppID) (ineffassign)
    • Line 109: warning: pcf.PayMchID undefined (type *Pay has no field or method PayMchID) (ineffassign)
    • Line 116: warning: pcf.PayNotifyURL undefined (type *Pay has no field or method PayNotifyURL) (ineffassign)
    • wechat/server/server.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import github.com/silenceper/wechat/context (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/silenceper/wechat/message (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/silenceper/wechat/util (invalid package name: "") (ineffassign)
    • Line 56: warning: srv.GetQuery undefined (type *Server has no field or method GetQuery) (ineffassign)
    • Line 58: warning: srv.String undefined (type *Server has no field or method String) (ineffassign)
    • Line 78: warning: srv.Query undefined (type *Server has no field or method Query) (ineffassign)
    • Line 79: warning: srv.Query undefined (type *Server has no field or method Query) (ineffassign)
    • Line 80: warning: srv.Query undefined (type *Server has no field or method Query) (ineffassign)
    • Line 81: warning: srv.Token undefined (type *Server has no field or method Token) (ineffassign)
    • Line 88: warning: srv.Query undefined (type *Server has no field or method Query) (ineffassign)
    • Line 94: warning: srv.Query undefined (type *Server has no field or method Query) (ineffassign)
    • Line 121: warning: srv.Request undefined (type *Server has no field or method Request) (ineffassign)
    • Line 126: warning: srv.Query undefined (type *Server has no field or method Query) (ineffassign)
    • Line 131: warning: srv.Query undefined (type *Server has no field or method Query) (ineffassign)
    • Line 133: warning: srv.Query undefined (type *Server has no field or method Query) (ineffassign)
    • Line 134: warning: srv.Token undefined (type *Server has no field or method Token) (ineffassign)
    • Line 140: warning: srv.AppID undefined (type *Server has no field or method AppID) (ineffassign)
    • Line 140: warning: srv.EncodingAESKey undefined (type *Server has no field or method EncodingAESKey) (ineffassign)
    • Line 145: warning: srv.Request undefined (type *Server has no field or method Request) (ineffassign)
    • Line 223: warning: srv.AppID undefined (type *Server has no field or method AppID) (ineffassign)
    • Line 223: warning: srv.EncodingAESKey undefined (type *Server has no field or method EncodingAESKey) (ineffassign)
    • Line 230: warning: srv.Token undefined (type *Server has no field or method Token) (ineffassign)
    • Line 239: warning: srv.XML undefined (type *Server has no field or method XML) (ineffassign)
    • wechat/wechat.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/silenceper/wechat/cache (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/silenceper/wechat/context (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/silenceper/wechat/js (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/silenceper/wechat/material (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/silenceper/wechat/menu (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/silenceper/wechat/miniprogram (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/silenceper/wechat/oauth (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/silenceper/wechat/pay (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/silenceper/wechat/qr (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/silenceper/wechat/server (invalid package name: "") (ineffassign)
    • Line 17: warning: could not import github.com/silenceper/wechat/template (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/silenceper/wechat/user (invalid package name: "") (ineffassign)
    • wechat/material/material.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/silenceper/wechat/context (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/silenceper/wechat/util (invalid package name: "") (ineffassign)
    • Line 58: warning: material.GetAccessToken undefined (type *Material has no field or method GetAccessToken) (ineffassign)
    • Line 88: warning: material.GetAccessToken undefined (type *Material has no field or method GetAccessToken) (ineffassign)
    • Line 104: warning: resMaterial.ErrCode undefined (type resAddMaterial has no field or method ErrCode) (ineffassign)
    • Line 105: warning: resMaterial.ErrCode undefined (type resAddMaterial has no field or method ErrCode) (ineffassign)
    • Line 105: warning: resMaterial.ErrMsg undefined (type resAddMaterial has no field or method ErrMsg) (ineffassign)
    • Line 121: warning: material.GetAccessToken undefined (type *Material has no field or method GetAccessToken) (ineffassign)
    • Line 162: warning: resMaterial.ErrCode undefined (type resAddMaterial has no field or method ErrCode) (ineffassign)
    • Line 163: warning: resMaterial.ErrCode undefined (type resAddMaterial has no field or method ErrCode) (ineffassign)
    • Line 163: warning: resMaterial.ErrMsg undefined (type resAddMaterial has no field or method ErrMsg) (ineffassign)
    • Line 177: warning: material.GetAccessToken undefined (type *Material has no field or method GetAccessToken) (ineffassign)
    • wechat/miniprogram/sns.go
    • Line 25: warning: wxa.AppID undefined (type *MiniProgram has no field or method AppID) (ineffassign)
    • Line 25: warning: wxa.AppSecret undefined (type *MiniProgram has no field or method AppSecret) (ineffassign)
    • Line 35: warning: result.ErrCode undefined (type ResCode2Session has no field or method ErrCode) (ineffassign)
    • Line 36: warning: result.ErrCode undefined (type ResCode2Session has no field or method ErrCode) (ineffassign)
    • Line 36: warning: result.ErrMsg undefined (type ResCode2Session has no field or method ErrMsg) (ineffassign)
    • wechat/cache/memcache.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/bradfitz/gomemcache/memcache (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/bradfitz/gomemcache/memcache (invalid package name: "") (ineffassign)
    • wechat/cache/redis.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/gomodule/redigo/redis (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/gomodule/redigo/redis (invalid package name: "") (ineffassign)
    • wechat/user/user.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/silenceper/wechat/context (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/silenceper/wechat/util (invalid package name: "") (ineffassign)
    • Line 66: warning: user.GetAccessToken undefined (type *User has no field or method GetAccessToken) (ineffassign)
    • Line 82: warning: userInfo.ErrCode undefined (type *Info has no field or method ErrCode) (ineffassign)
    • Line 83: warning: userInfo.ErrCode undefined (type *Info has no field or method ErrCode) (ineffassign)
    • Line 83: warning: userInfo.ErrMsg undefined (type *Info has no field or method ErrMsg) (ineffassign)
    • Line 92: warning: user.GetAccessToken undefined (type *User has no field or method GetAccessToken) (ineffassign)
    • Line 109: warning: user.GetAccessToken undefined (type *User has no field or method GetAccessToken) (ineffassign)
    • wechat/qr/qr.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/silenceper/wechat/context (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/silenceper/wechat/util (invalid package name: "") (ineffassign)
    • Line 60: warning: q.GetAccessToken undefined (type *QR has no field or method GetAccessToken) (ineffassign)
    • wechat/template/template.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/silenceper/wechat/context (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/silenceper/wechat/util (invalid package name: "") (ineffassign)
    • Line 56: warning: tpl.GetAccessToken undefined (type *Template has no field or method GetAccessToken) (ineffassign)
    • Line 68: warning: result.ErrCode undefined (type resTemplateSend has no field or method ErrCode) (ineffassign)
    • Line 69: warning: result.ErrCode undefined (type resTemplateSend has no field or method ErrCode) (ineffassign)
    • Line 69: warning: result.ErrMsg undefined (type resTemplateSend has no field or method ErrMsg) (ineffassign)
    • wechat/pay/refund.go
    • Line 65: warning: pcf.AppID undefined (type *Pay has no field or method AppID) (ineffassign)
    • Line 66: warning: pcf.PayMchID undefined (type *Pay has no field or method PayMchID) (ineffassign)
    • Line 75: warning: pcf.PayKey undefined (type *Pay has no field or method PayKey) (ineffassign)
    • Line 79: warning: pcf.AppID undefined (type *Pay has no field or method AppID) (ineffassign)
    • Line 80: warning: pcf.PayMchID undefined (type *Pay has no field or method PayMchID) (ineffassign)
    • Line 90: warning: pcf.PayMchID undefined (type *Pay has no field or method PayMchID) (ineffassign)
    • wechat/context/access_token.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/silenceper/wechat/util (invalid package name: "") (ineffassign)
    • Line 76: warning: resAccessToken.ErrMsg undefined (type ResAccessToken has no field or method ErrMsg) (ineffassign)
    • Line 77: warning: resAccessToken.ErrCode undefined (type ResAccessToken has no field or method ErrCode) (ineffassign)
    • Line 77: warning: resAccessToken.ErrMsg undefined (type ResAccessToken has no field or method ErrMsg) (ineffassign)
    • Line 9: warning: could not import github.com/silenceper/wechat/util (invalid package name: "") (ineffassign)
    • Line 76: warning: resAccessToken.ErrMsg undefined (type ResAccessToken has no field or method ErrMsg) (ineffassign)
    • Line 77: warning: resAccessToken.ErrCode undefined (type ResAccessToken has no field or method ErrCode) (ineffassign)
    • Line 77: warning: resAccessToken.ErrMsg undefined (type ResAccessToken has no field or method ErrMsg) (ineffassign)
    • wechat/oauth/qy_oauth.go
    • Line 21: warning: oauth.AppID undefined (type *Oauth has no field or method AppID) (ineffassign)
    • Line 36: warning: oauth.GetQyAccessToken undefined (type *Oauth has no field or method GetQyAccessToken) (ineffassign)
    • Line 51: warning: result.ErrCode undefined (type QyUserInfo has no field or method ErrCode) (ineffassign)
    • Line 52: warning: result.ErrCode undefined (type QyUserInfo has no field or method ErrCode) (ineffassign)
    • Line 52: warning: result.ErrMsg undefined (type QyUserInfo has no field or method ErrMsg) (ineffassign)
    • Line 74: warning: oauth.GetQyAccessToken undefined (type *Oauth has no field or method GetQyAccessToken) (ineffassign)
    • Line 90: warning: result.ErrCode undefined (type QyUserDetail has no field or method ErrCode) (ineffassign)
    • Line 91: warning: result.ErrCode undefined (type QyUserDetail has no field or method ErrCode) (ineffassign)
    • Line 91: warning: result.ErrMsg undefined (type QyUserDetail has no field or method ErrMsg) (ineffassign)
    • wechat/util/http.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import golang.org/x/crypto/pkcs12 (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import golang.org/x/crypto/pkcs12 (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!