wechaty-puppet/memory-card/memory_card.go
Your code does not pass gofmt in 1 place. Go fmt your code! Open
Open
package memory_card
- Exclude checks
comment on exported function NewMemoryCard should be of the form "NewMemoryCard ..." Open
Open
// TODO: 我将这个地方调整为 把storage的初始化放内部,原实现者可根据情况调整一下
- Exclude checks
comment on exported type MemoryCard should be of the form "MemoryCard ..." (with optional leading article) Open
Open
// memory card
- Exclude checks
exported method MemoryCard.Delete should have comment or be unexported Open
Open
func (mc *MemoryCard) Delete(key string) {
- Exclude checks
exported method MemoryCard.Has should have comment or be unexported Open
Open
func (mc *MemoryCard) Has(key string) bool {
- Exclude checks
exported method MemoryCard.Save should have comment or be unexported Open
Open
func (mc *MemoryCard) Save() error {
- Exclude checks
exported method MemoryCard.Set should have comment or be unexported Open
Open
func (mc *MemoryCard) Set(key string, value interface{}) {
- Exclude checks
comment on exported type IMemoryCard should be of the form "IMemoryCard ..." (with optional leading article) Open
Open
// memory card interface
- Exclude checks
exported method MemoryCard.Load should have comment or be unexported Open
Open
func (mc *MemoryCard) Load() error {
- Exclude checks
don't use an underscore in package name Open
Open
package memory_card
- Exclude checks
exported method MemoryCard.Clear should have comment or be unexported Open
Open
func (mc *MemoryCard) Clear() {
- Exclude checks
exported method MemoryCard.SetInt64 should have comment or be unexported Open
Open
func (mc *MemoryCard) SetInt64(key string, value int64) {
- Exclude checks
exported method MemoryCard.GetInt64 should have comment or be unexported Open
Open
func (mc *MemoryCard) GetInt64(key string) int64 {
- Exclude checks
exported method MemoryCard.SetString should have comment or be unexported Open
Open
func (mc *MemoryCard) SetString(key string, value string) {
- Exclude checks
exported method MemoryCard.GetString should have comment or be unexported Open
Open
func (mc *MemoryCard) GetString(key string) string {
- Exclude checks
exported method MemoryCard.Destroy should have comment or be unexported Open
Open
func (mc *MemoryCard) Destroy() error {
- Exclude checks