Preparing report...

Report for github.com/harlanc/moshopserver

A    Great!    Found 30 issues across 34 files

Tweet

gofmt94%

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!


gocyclo100%

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!


golint11%

Golint is a linter for Go source code.

    • moshopserver/controllers/topic.go
    • Line 10: warning: exported type TopicController should have comment or be unexported (golint)
    • Line 39: warning: exported method TopicController.Topic_List should have comment or be unexported (golint)
    • Line 39: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 39: warning: don't use underscores in Go names; method Topic_List should be TopicList (golint)
    • Line 70: warning: exported method TopicController.Topic_Detail should have comment or be unexported (golint)
    • Line 70: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 70: warning: don't use underscores in Go names; method Topic_Detail should be TopicDetail (golint)
    • Line 85: warning: exported method TopicController.Topic_Related should have comment or be unexported (golint)
    • Line 85: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 85: warning: don't use underscores in Go names; method Topic_Related should be TopicRelated (golint)
    • moshopserver/models/order.go
    • Line 12: warning: exported function GetOrderStatusText should have comment or be unexported (golint)
    • Line 26: warning: exported type OrderHandleOption should have comment or be unexported (golint)
    • Line 37: warning: exported function GetOrderHandleOption should have comment or be unexported (golint)
    • Line 76: warning: exported function GenerateOrderNumber should have comment or be unexported (golint)
    • moshopserver/services/weixin.go
    • Line 15: warning: exported type WXLoginResponse should have comment or be unexported (golint)
    • Line 25: warning: exported type Watermark should have comment or be unexported (golint)
    • Line 30: warning: exported type WXUserInfo should have comment or be unexported (golint)
    • Line 43: warning: exported type ResUserInfo should have comment or be unexported (golint)
    • Line 51: warning: exported function Login should have comment or be unexported (golint)
    • Line 84: warning: exported function DecryptUserInfoData should have comment or be unexported (golint)
    • Line 105: warning: exported type PayInfo should have comment or be unexported (golint)
    • Line 113: warning: exported function CreateUnifiedOrder should have comment or be unexported (golint)
    • moshopserver/controllers/cart.go
    • Line 13: warning: exported type CartController should have comment or be unexported (golint)
    • Line 17: warning: exported type CartTotal should have comment or be unexported (golint)
    • Line 23: warning: exported type GoodsCount should have comment or be unexported (golint)
    • Line 26: warning: exported type IndexCartData should have comment or be unexported (golint)
    • Line 31: warning: exported type GoodsSpecifition should have comment or be unexported (golint)
    • Line 65: warning: exported method CartController.Cart_Index should have comment or be unexported (golint)
    • Line 65: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 65: warning: don't use underscores in Go names; method Cart_Index should be CartIndex (golint)
    • Line 71: warning: exported type CartAddBody should have comment or be unexported (golint)
    • Line 77: warning: exported method CartController.Cart_Add should have comment or be unexported (golint)
    • Line 77: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 77: warning: don't use underscores in Go names; method Cart_Add should be CartAdd (golint)
    • Line 150: warning: exported type CartUpdateBody should have comment or be unexported (golint)
    • Line 157: warning: exported method CartController.Cart_Update should have comment or be unexported (golint)
    • Line 157: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 157: warning: don't use underscores in Go names; method Cart_Update should be CartUpdate (golint)
    • Line 235: warning: exported type CartCheckedBody should have comment or be unexported (golint)
    • Line 240: warning: exported method CartController.Cart_Checked should have comment or be unexported (golint)
    • Line 240: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 240: warning: don't use underscores in Go names; method Cart_Checked should be CartChecked (golint)
    • Line 273: warning: exported type CartDeleteBody should have comment or be unexported (golint)
    • Line 277: warning: exported method CartController.Cart_Delete should have comment or be unexported (golint)
    • Line 277: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 277: warning: don't use underscores in Go names; method Cart_Delete should be CartDelete (golint)
    • Line 298: warning: exported method CartController.Cart_GoodsCount should have comment or be unexported (golint)
    • Line 298: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 298: warning: don't use underscores in Go names; method Cart_GoodsCount should be CartGoodsCount (golint)
    • Line 306: warning: exported type CartAddress should have comment or be unexported (golint)
    • Line 314: warning: exported type CheckoutRtnJson should have comment or be unexported (golint)
    • Line 326: warning: exported method CartController.Cart_Checkout should have comment or be unexported (golint)
    • Line 326: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 326: warning: don't use underscores in Go names; method Cart_Checkout should be CartCheckout (golint)
    • moshopserver/controllers/comment.go
    • Line 10: warning: exported type CommentController should have comment or be unexported (golint)
    • Line 14: warning: exported method CommentController.Comment_Post should have comment or be unexported (golint)
    • Line 14: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 14: warning: don't use underscores in Go names; method Comment_Post should be CommentPost (golint)
    • Line 43: warning: exported type CommentCountRtnJson should have comment or be unexported (golint)
    • Line 48: warning: exported method CommentController.Comment_Count should have comment or be unexported (golint)
    • Line 48: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 48: warning: don't use underscores in Go names; method Comment_Count should be CommentCount (golint)
    • Line 76: warning: comment on exported function GetCommentPageData should be of the form "GetCommentPageData ..." (golint)
    • Line 90: warning: exported type CommenListtRtnJson should have comment or be unexported (golint)
    • Line 100: warning: exported method CommentController.Comment_List should have comment or be unexported (golint)
    • Line 100: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 100: warning: don't use underscores in Go names; method Comment_List should be CommentList (golint)
    • moshopserver/controllers/search.go
    • Line 10: warning: exported type SearchController should have comment or be unexported (golint)
    • Line 14: warning: exported type SearchIndexRtnJson should have comment or be unexported (golint)
    • Line 36: warning: exported method SearchController.Search_Index should have comment or be unexported (golint)
    • Line 36: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 36: warning: don't use underscores in Go names; method Search_Index should be SearchIndex (golint)
    • Line 62: warning: exported method SearchController.Search_Helper should have comment or be unexported (golint)
    • Line 62: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 62: warning: don't use underscores in Go names; method Search_Helper should be SearchHelper (golint)
    • Line 77: warning: exported method SearchController.Search_Clearhistory should have comment or be unexported (golint)
    • Line 77: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 77: warning: don't use underscores in Go names; method Search_Clearhistory should be SearchClearhistory (golint)
    • moshopserver/controllers/brand.go
    • Line 10: warning: exported type BrandController should have comment or be unexported (golint)
    • Line 14: warning: exported method BrandController.Brand_List should have comment or be unexported (golint)
    • Line 14: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 14: warning: don't use underscores in Go names; method Brand_List should be BrandList (golint)
    • Line 41: warning: exported type BrandDetailRtnJson should have comment or be unexported (golint)
    • Line 45: warning: exported method BrandController.Brand_Detail 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 45: warning: don't use underscores in Go names; method Brand_Detail should be BrandDetail (golint)
    • moshopserver/services/token.go
    • Line 18: warning: exported type CustomClaims should have comment or be unexported (golint)
    • Line 23: warning: exported function GetUserID should have comment or be unexported (golint)
    • Line 35: warning: exported function Parse should have comment or be unexported (golint)
    • Line 59: warning: exported function Create should have comment or be unexported (golint)
    • Line 78: warning: exported function Verify should have comment or be unexported (golint)
    • Line 90: warning: exported var LoginUserId should have comment or be unexported (golint)
    • Line 92: warning: exported function FilterFunc should have comment or be unexported (golint)
    • moshopserver/utils/utils.go
    • Line 12: warning: exported function String2Int should have comment or be unexported (golint)
    • Line 14: warning: don't use underscores in Go names; var goodsId_int should be goodsIDInt (golint)
    • Line 17: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 22: warning: exported function Int2String should have comment or be unexported (golint)
    • Line 26: warning: exported function Int642String should have comment or be unexported (golint)
    • Line 30: warning: exported function Float642String should have comment or be unexported (golint)
    • Line 34: warning: exported function GetUUID should have comment or be unexported (golint)
    • Line 38: warning: comment on exported function GetTimestamp should be of the form "GetTimestamp ..." (golint)
    • Line 43: warning: comment on exported function FormatTimestamp should be of the form "FormatTimestamp ..." (golint)
    • Line 49: warning: exported function ExactMapValues2Int64Array should have comment or be unexported (golint)
    • Line 58: warning: exported function ExactMapValues2StringArray should have comment or be unexported (golint)
    • Line 67: warning: exported type PageData should have comment or be unexported (golint)
    • Line 75: warning: exported function GetPageData should have comment or be unexported (golint)
    • Line 88: warning: exported function ContainsInt should have comment or be unexported (golint)
    • Line 97: warning: exported function DateEqual should have comment or be unexported (golint)
    • moshopserver/controllers/index.go
    • Line 10: warning: exported type IndexController should have comment or be unexported (golint)
    • Line 20: warning: exported type IndexRtnJson should have comment or be unexported (golint)
    • Line 52: warning: exported method IndexController.Index_Index should have comment or be unexported (golint)
    • Line 52: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 52: warning: don't use underscores in Go names; method Index_Index should be IndexIndex (golint)
    • moshopserver/models/db.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 8: warning: exported type NideshopAd should have comment or be unexported (golint)
    • Line 20: warning: exported type NideshopAdPosition should have comment or be unexported (golint)
    • Line 28: warning: exported type NideshopAddress should have comment or be unexported (golint)
    • Line 41: warning: exported type NideshopAdmin should have comment or be unexported (golint)
    • Line 54: warning: exported type NideshopAttribute should have comment or be unexported (golint)
    • Line 63: warning: exported type NideshopAttributeCategory should have comment or be unexported (golint)
    • Line 69: warning: exported type NideshopBrand should have comment or be unexported (golint)
    • Line 84: warning: exported type NideshopCart should have comment or be unexported (golint)
    • Line 101: warning: exported type NideshopCategory should have comment or be unexported (golint)
    • Line 119: warning: exported type NideshopChannel should have comment or be unexported (golint)
    • Line 127: warning: exported type NideshopCollect should have comment or be unexported (golint)
    • Line 136: warning: exported type NideshopComment should have comment or be unexported (golint)
    • Line 147: warning: exported type NideshopCommentPicture should have comment or be unexported (golint)
    • Line 154: warning: exported type NideshopCoupon should have comment or be unexported (golint)
    • Line 168: warning: exported type NideshopFeedback should have comment or be unexported (golint)
    • Line 184: warning: exported type NideshopFootprint should have comment or be unexported (golint)
    • Line 191: warning: exported type NideshopGoods should have comment or be unexported (golint)
    • Line 224: warning: exported type NideshopGoodsAttribute should have comment or be unexported (golint)
    • Line 231: warning: exported type NideshopGoodsGallery should have comment or be unexported (golint)
    • Line 239: warning: exported type NideshopGoodsIssue should have comment or be unexported (golint)
    • Line 246: warning: exported type NideshopGoodsSpecification should have comment or be unexported (golint)
    • Line 254: warning: exported type NideshopKeywords should have comment or be unexported (golint)
    • Line 265: warning: exported type NideshopOrder should have comment or be unexported (golint)
    • Line 298: warning: exported type NideshopOrderExpress should have comment or be unexported (golint)
    • Line 313: warning: exported type NideshopOrderGoods should have comment or be unexported (golint)
    • Line 329: warning: exported type NideshopProduct should have comment or be unexported (golint)
    • Line 338: warning: exported type NideshopRegion should have comment or be unexported (golint)
    • Line 346: warning: exported type NideshopRelatedGoods should have comment or be unexported (golint)
    • Line 352: warning: exported type NideshopSearchHistory should have comment or be unexported (golint)
    • Line 360: warning: exported type NideshopShipper should have comment or be unexported (golint)
    • Line 367: warning: exported type NideshopSpecification should have comment or be unexported (golint)
    • Line 373: warning: exported type NideshopTopic should have comment or be unexported (golint)
    • Line 390: warning: exported type NideshopTopicCategory should have comment or be unexported (golint)
    • Line 396: warning: exported type NideshopUser should have comment or be unexported (golint)
    • Line 413: warning: exported type NideshopUserCoupon should have comment or be unexported (golint)
    • Line 422: warning: exported type NideshopUserLevel should have comment or be unexported (golint)
    • moshopserver/models/goods.go
    • Line 8: warning: exported type SpecificationData should have comment or be unexported (golint)
    • Line 13: warning: exported type SpecificationItem should have comment or be unexported (golint)
    • Line 14: warning: don't use underscores in Go names; struct field Specification_id should be SpecificationID (golint)
    • Line 19: warning: exported function GetProductList should have comment or be unexported (golint)
    • Line 31: warning: exported function GetSpecificationList should have comment or be unexported (golint)
    • moshopserver/services/express.go
    • Line 12: warning: exported type Traces should have comment or be unexported (golint)
    • Line 18: warning: exported type ExpressRtnInfo should have comment or be unexported (golint)
    • Line 28: warning: exported type ExpressResult should have comment or be unexported (golint)
    • Line 34: warning: exported function QueryExpress should have comment or be unexported (golint)
    • Line 65: warning: exported type ExpressFromData should have comment or be unexported (golint)
    • Line 73: warning: exported function GenerateFromData should have comment or be unexported (golint)
    • Line 85: warning: exported type ExpressRequestData should have comment or be unexported (golint)
    • Line 91: warning: exported function GenerateRequestData should have comment or be unexported (golint)
    • Line 96: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 101: warning: exported function GenerateDataSign should have comment or be unexported (golint)
    • Line 109: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • moshopserver/controllers/collect.go
    • Line 10: warning: exported type CollectController should have comment or be unexported (golint)
    • Line 14: warning: exported type CollectListRtnJson should have comment or be unexported (golint)
    • Line 21: warning: exported method CollectController.Collect_List should have comment or be unexported (golint)
    • Line 21: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 21: warning: don't use underscores in Go names; method Collect_List should be CollectList (golint)
    • Line 43: warning: exported type AddorDeleteRtnJson should have comment or be unexported (golint)
    • Line 47: warning: exported method CollectController.Collect_AddorDelete should have comment or be unexported (golint)
    • Line 47: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 47: warning: don't use underscores in Go names; method Collect_AddorDelete should be CollectAddorDelete (golint)
    • moshopserver/controllers/pay.go
    • Line 11: warning: exported type PayController should have comment or be unexported (golint)
    • Line 15: warning: exported method PayController.Pay_Prepay should have comment or be unexported (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 15: warning: don't use underscores in Go names; method Pay_Prepay should be PayPrepay (golint)
    • moshopserver/controllers/region.go
    • Line 10: warning: exported type RegionController should have comment or be unexported (golint)
    • Line 14: warning: exported method RegionController.Region_Info should have comment or be unexported (golint)
    • Line 14: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 14: warning: don't use underscores in Go names; method Region_Info should be RegionInfo (golint)
    • Line 29: warning: exported method RegionController.Region_List should have comment or be unexported (golint)
    • Line 29: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 29: warning: don't use underscores in Go names; method Region_List should be RegionList (golint)
    • moshopserver/utils/crypto.go
    • Line 12: warning: exported function PKCS7UnPadding should have comment or be unexported (golint)
    • Line 18: warning: exported function AesCBCDecrypt should have comment or be unexported (golint)
    • Line 41: warning: exported function Md5 should have comment or be unexported (golint)
    • Line 47: warning: exported function Base64Encode should have comment or be unexported (golint)
    • Line 51: warning: exported function Base64Decode should have comment or be unexported (golint)
    • Line 56: warning: exported function UrlEncode should have comment or be unexported (golint)
    • moshopserver/utils/httpdata.go
    • Line 9: warning: exported type HTTPData should have comment or be unexported (golint)
    • Line 15: warning: exported function ReturnHTTPSuccess should have comment or be unexported (golint)
    • Line 31: warning: exported function GetHTTPRtnJsonData should have comment or be unexported (golint)
    • moshopserver/controllers/address.go
    • Line 11: warning: exported type AddressController should have comment or be unexported (golint)
    • Line 15: warning: exported type AddressListRtnJson should have comment or be unexported (golint)
    • Line 23: warning: exported method AddressController.Address_List should have comment or be unexported (golint)
    • Line 23: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 23: warning: don't use underscores in Go names; method Address_List should be AddressList (golint)
    • Line 52: warning: exported method AddressController.Address_Detail should have comment or be unexported (golint)
    • Line 52: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 52: warning: don't use underscores in Go names; method Address_Detail should be AddressDetail (golint)
    • Line 82: warning: exported type AddressSaveBody should have comment or be unexported (golint)
    • Line 93: warning: exported method AddressController.Address_Save should have comment or be unexported (golint)
    • Line 93: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 93: warning: don't use underscores in Go names; method Address_Save should be AddressSave (golint)
    • Line 172: warning: exported method AddressController.Address_Delete should have comment or be unexported (golint)
    • Line 172: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 172: warning: don't use underscores in Go names; method Address_Delete should be AddressDelete (golint)
    • moshopserver/controllers/auth.go
    • Line 13: warning: exported type AuthController should have comment or be unexported (golint)
    • Line 17: warning: exported type AuthLoginBody should have comment or be unexported (golint)
    • Line 22: warning: exported method AuthController.Auth_LoginByWeixin should have comment or be unexported (golint)
    • Line 22: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 22: warning: don't use underscores in Go names; method Auth_LoginByWeixin should be AuthLoginByWeixin (golint)
    • moshopserver/models/collect.go
    • Line 7: warning: exported function IsUserHasCollect should have comment or be unexported (golint)
    • Line 18: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • moshopserver/controllers/order.go
    • Line 11: warning: exported type OrderController should have comment or be unexported (golint)
    • Line 15: warning: comment on exported function GetOrderPageData should be of the form "GetOrderPageData ..." (golint)
    • Line 29: warning: exported type OrderListRtnJson should have comment or be unexported (golint)
    • Line 37: warning: exported method OrderController.Order_List should have comment or be unexported (golint)
    • Line 37: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 37: warning: don't use underscores in Go names; method Order_List should be OrderList (golint)
    • Line 70: warning: exported type OrderInfo should have comment or be unexported (golint)
    • Line 82: warning: exported type OrderDetailRtnJson should have comment or be unexported (golint)
    • Line 88: warning: exported method OrderController.Order_Detail should have comment or be unexported (golint)
    • Line 88: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 88: warning: don't use underscores in Go names; method Order_Detail should be OrderDetail (golint)
    • Line 133: warning: exported method OrderController.Order_Submit should have comment or be unexported (golint)
    • Line 133: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 133: warning: don't use underscores in Go names; method Order_Submit should be OrderSubmit (golint)
    • Line 216: warning: exported method OrderController.Order_Express should have comment or be unexported (golint)
    • Line 216: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 216: warning: don't use underscores in Go names; method Order_Express should be OrderExpress (golint)
    • moshopserver/models/category.go
    • Line 8: warning: exported function GetChildCategoryId should have comment or be unexported (golint)
    • Line 18: warning: exported function GetCategoryWhereIn should have comment or be unexported (golint)
    • moshopserver/controllers/catalog.go
    • Line 10: warning: exported type CatalogController should have comment or be unexported (golint)
    • Line 14: warning: exported type CurCategory should have comment or be unexported (golint)
    • Line 19: warning: exported type CateLogIndexRtnJson should have comment or be unexported (golint)
    • Line 24: warning: exported method CatalogController.Catalog_Index should have comment or be unexported (golint)
    • Line 24: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 24: warning: don't use underscores in Go names; method Catalog_Index should be CatalogIndex (golint)
    • Line 58: warning: exported type CateLogCurRtnJson should have comment or be unexported (golint)
    • Line 62: warning: exported method CatalogController.Catalog_Current should have comment or be unexported (golint)
    • Line 62: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 62: warning: don't use underscores in Go names; method Catalog_Current should be CatalogCurrent (golint)
    • moshopserver/controllers/footprint.go
    • Line 13: warning: exported type FootprintController should have comment or be unexported (golint)
    • Line 17: warning: exported method FootprintController.Footprint_Delete should have comment or be unexported (golint)
    • Line 17: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 17: warning: don't use underscores in Go names; method Footprint_Delete should be FootprintDelete (golint)
    • Line 32: warning: exported type FootprintListRtnJson should have comment or be unexported (golint)
    • Line 41: warning: exported method FootprintController.Footprint_List should have comment or be unexported (golint)
    • Line 41: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 41: warning: don't use underscores in Go names; method Footprint_List should be FootprintList (golint)
    • moshopserver/controllers/goods.go
    • Line 13: warning: exported type GoodsController should have comment or be unexported (golint)
    • Line 17: warning: exported type SkuRtnJson should have comment or be unexported (golint)
    • Line 22: warning: exported type DetailRtnJson should have comment or be unexported (golint)
    • Line 33: warning: exported type CategoryRtnJson should have comment or be unexported (golint)
    • Line 39: warning: exported type Attribute should have comment or be unexported (golint)
    • Line 44: warning: exported type CommentUser should have comment or be unexported (golint)
    • Line 50: warning: exported type CommentInfo should have comment or be unexported (golint)
    • Line 58: warning: exported type Comment should have comment or be unexported (golint)
    • Line 63: warning: exported type FilterCategory should have comment or be unexported (golint)
    • Line 69: warning: exported type ListRtnJson should have comment or be unexported (golint)
    • Line 75: warning: exported type Banner should have comment or be unexported (golint)
    • Line 78: warning: don't use underscores in Go names; struct field Img_url should be ImgURL (golint)
    • Line 81: warning: exported type NewRtnJson should have comment or be unexported (golint)
    • Line 85: warning: exported type HotRtnJson should have comment or be unexported (golint)
    • Line 89: warning: exported type CountRtnJson should have comment or be unexported (golint)
    • Line 115: warning: exported method GoodsController.Goods_Index should have comment or be unexported (golint)
    • Line 115: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 115: warning: don't use underscores in Go names; method Goods_Index should be GoodsIndex (golint)
    • Line 126: warning: exported method GoodsController.Goods_Sku should have comment or be unexported (golint)
    • Line 126: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 126: warning: don't use underscores in Go names; method Goods_Sku should be GoodsSku (golint)
    • Line 129: warning: don't use underscores in Go names; var goodsId_int should be goodsIDInt (golint)
    • Line 138: warning: exported method GoodsController.Goods_Detail should have comment or be unexported (golint)
    • Line 138: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 138: warning: don't use underscores in Go names; method Goods_Detail should be GoodsDetail (golint)
    • Line 206: warning: exported method GoodsController.Goods_Category should have comment or be unexported (golint)
    • Line 206: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 206: warning: don't use underscores in Go names; method Goods_Category should be GoodsCategory (golint)
    • Line 226: warning: exported method GoodsController.Goods_List should have comment or be unexported (golint)
    • Line 226: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 226: warning: don't use underscores in Go names; method Goods_List should be GoodsList (golint)
    • Line 320: warning: exported method GoodsController.Goods_Filter should have comment or be unexported (golint)
    • Line 320: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 320: warning: don't use underscores in Go names; method Goods_Filter should be GoodsFilter (golint)
    • Line 371: warning: exported method GoodsController.Goods_New should have comment or be unexported (golint)
    • Line 371: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 371: warning: don't use underscores in Go names; method Goods_New should be GoodsNew (golint)
    • Line 380: warning: exported method GoodsController.Goods_Hot should have comment or be unexported (golint)
    • Line 380: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 380: warning: don't use underscores in Go names; method Goods_Hot should be GoodsHot (golint)
    • Line 388: warning: exported method GoodsController.Goods_Related should have comment or be unexported (golint)
    • Line 388: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 388: warning: don't use underscores in Go names; method Goods_Related should be GoodsRelated (golint)
    • Line 414: warning: exported method GoodsController.Goods_Count should have comment or be unexported (golint)
    • Line 414: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 414: warning: don't use underscores in Go names; method Goods_Count should be GoodsCount (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!