Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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.
No problems detected. Good job!
Golint is a linter for Go source code.
-
dotwallet-go-sdk/example/main.go
- Line 293: warning: exported type HttpJsonResponse should have comment or be unexported (golint)
- Line 299: warning: exported function MakeHttpJsonResponse should have comment or be unexported (golint)
- Line 312: warning: exported function MakeOKHttpJsonResponse should have comment or be unexported (golint)
- Line 316: warning: exported function MakeOKHttpJsonResponseByInterface should have comment or be unexported (golint)
- Line 324: warning: exported function MakeErrHttpJsonResponse should have comment or be unexported (golint)
- Line 328: warning: exported function DotUserId2UserId should have comment or be unexported (golint)
- Line 332: warning: exported function UserId2DotUserId should have comment or be unexported (golint)
- Line 336: warning: exported function DotWalletAuth should have comment or be unexported (golint)
- Line 354: warning: exported type DotWalletLoginRequest should have comment or be unexported (golint)
- Line 359: warning: exported type LoginResponse should have comment or be unexported (golint)
- Line 363: warning: exported function DotWalletLogin should have comment or be unexported (golint)
- Line 392: warning: exported type GetUserReceiveAddressRequest should have comment or be unexported (golint)
- Line 397: warning: exported function GetUserReceiveAddress should have comment or be unexported (golint)
- Line 420: warning: exported type AutoPayRequest should have comment or be unexported (golint)
- Line 428: warning: exported function AutoPay should have comment or be unexported (golint)
- Line 459: warning: exported function AutoPayNotify should have comment or be unexported (golint)
- Line 468: warning: exported function LoginPage should have comment or be unexported (golint)
- Line 473: warning: exported function StartHttpServer should have comment or be unexported (golint)
- Line 488: warning: exported type Config should have comment or be unexported (golint)
-
dotwallet-go-sdk/client.go
- Line 13: warning: exported const SCOPE_USER_INFO should have comment (or a comment on this block) or be unexported (golint)
- Line 40: warning: exported type DotError should have comment or be unexported (golint)
- Line 45: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 49: warning: exported function NewDotError should have comment or be unexported (golint)
- Line 59: warning: exported type DotUser should have comment or be unexported (golint)
- Line 70: warning: exported type CodeMsgData should have comment or be unexported (golint)
- Line 76: warning: exported type Client should have comment or be unexported (golint)
- Line 90: warning: exported method Client.GetAuthorizeUrl should have comment or be unexported (golint)
- Line 90: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 101: warning: exported type TokenTokenType should have comment or be unexported (golint)
- Line 106: warning: exported method Client.DoHttpRequestWithToken should have comment or be unexported (golint)
- Line 106: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 147: warning: exported method Client.DoHttpRequest should have comment or be unexported (golint)
- Line 147: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 174: warning: exported type DotUserTokenInfo should have comment or be unexported (golint)
- Line 182: warning: exported type GetDotUserTokenInfoRequest should have comment or be unexported (golint)
- Line 190: warning: exported type GetAccessTokenResponse should have comment or be unexported (golint)
- Line 198: warning: exported function NewDotUserTokenInfo should have comment or be unexported (golint)
- Line 209: warning: exported method Client.GetUserTokenInfo should have comment or be unexported (golint)
- Line 209: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 232: warning: exported type RefreshTokenRequest should have comment or be unexported (golint)
- Line 239: warning: exported method Client.RefreshToken should have comment or be unexported (golint)
- Line 239: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 254: warning: exported type DotUserInfo should have comment or be unexported (golint)
- Line 260: warning: exported method Client.GetDotUserInfoByUserToken should have comment or be unexported (golint)
- Line 260: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 274: warning: exported method Client.GetDotUser should have comment or be unexported (golint)
- Line 274: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 295: warning: exported type GetApplicationAccessTokenRequest should have comment or be unexported (golint)
- Line 301: warning: exported method Client.UpdateApplicationAccessToken should have comment or be unexported (golint)
- Line 301: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 317: warning: exported type GetUserReceiveAddressRequest should have comment or be unexported (golint)
- Line 322: warning: exported type UserReceiveAddress should have comment or be unexported (golint)
- Line 329: warning: exported type GetUserReceiveAddressResponse should have comment or be unexported (golint)
- Line 334: warning: exported method Client.GetUserReceiveAddress should have comment or be unexported (golint)
- Line 334: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 354: warning: exported type ToPoint should have comment or be unexported (golint)
- Line 360: warning: exported type Product should have comment or be unexported (golint)
- Line 366: warning: exported type AutoPayRequest should have comment or be unexported (golint)
- Line 376: warning: exported type AutoPayResponse should have comment or be unexported (golint)
- Line 385: warning: exported method Client.AutoPay should have comment or be unexported (golint)
- Line 385: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 394: warning: exported function NewClient should have comment or be unexported (golint)
-
dotwallet-go-sdk/util.go
- Line 14: warning: exported const HTTP_POST should have comment (or a comment on this block) or be unexported (golint)
- Line 20: warning: exported function ToJson should have comment or be unexported (golint)
- Line 28: warning: exported function ToCurlStr should have comment or be unexported (golint)
- Line 49: warning: exported function DoHttpRequest should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!