wechaty/go-wechaty

View on GitHub
wechaty-puppet/memory-card/storage/nop.go

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
package storage

type NopStorage struct {
}

func (n NopStorage) Save(payload map[string]interface{}) error {
    return nil
}

func (n NopStorage) Load() (map[string]interface{}, error) {
    return map[string]interface{}{}, nil
}

func (n NopStorage) Destroy() {}