wechaty/go-wechaty

View on GitHub
wechaty-puppet/memory-card/memory_card.go

Summary

Maintainability
A
0 mins
Test Coverage
B
87%

Your code does not pass gofmt in 1 place. Go fmt your code!
Open

package memory_card

comment on exported type MemoryCard should be of the form "MemoryCard ..." (with optional leading article)
Open

// memory card

exported method MemoryCard.Has should have comment or be unexported
Open

func (mc *MemoryCard) Has(key string) bool {

don't use an underscore in package name
Open

package memory_card

exported method MemoryCard.Set should have comment or be unexported
Open

func (mc *MemoryCard) Set(key string, value interface{}) {

exported method MemoryCard.Destroy should have comment or be unexported
Open

func (mc *MemoryCard) Destroy() error {

exported method MemoryCard.Load should have comment or be unexported
Open

func (mc *MemoryCard) Load() error {

comment on exported type IMemoryCard should be of the form "IMemoryCard ..." (with optional leading article)
Open

// memory card interface

exported method MemoryCard.Delete should have comment or be unexported
Open

func (mc *MemoryCard) Delete(key string) {

exported method MemoryCard.GetInt64 should have comment or be unexported
Open

func (mc *MemoryCard) GetInt64(key string) int64 {

exported method MemoryCard.Save should have comment or be unexported
Open

func (mc *MemoryCard) Save() error {

exported method MemoryCard.GetString should have comment or be unexported
Open

func (mc *MemoryCard) GetString(key string) string {

exported method MemoryCard.Clear should have comment or be unexported
Open

func (mc *MemoryCard) Clear() {

comment on exported function NewMemoryCard should be of the form "NewMemoryCard ..."
Open

// TODO: 我将这个地方调整为 把storage的初始化放内部,原实现者可根据情况调整一下

exported method MemoryCard.SetInt64 should have comment or be unexported
Open

func (mc *MemoryCard) SetInt64(key string, value int64) {

exported method MemoryCard.SetString should have comment or be unexported
Open

func (mc *MemoryCard) SetString(key string, value string) {

There are no issues that match your filters.

Category
Status