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 function NewMemoryCard should be of the form "NewMemoryCard ..."
Open

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

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

// memory card

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

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

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

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

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

func (mc *MemoryCard) Save() error {

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

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

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

// memory card interface

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

func (mc *MemoryCard) Load() error {

don't use an underscore in package name
Open

package memory_card

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

func (mc *MemoryCard) Clear() {

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

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

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

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

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

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

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

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

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

func (mc *MemoryCard) Destroy() error {

There are no issues that match your filters.

Category
Status