storage.go
exported method DefaultStorage.Init should have comment or be unexported Open
Open
func (ds *DefaultStorage) Init(backupPath, appName string) {
- Exclude checks
exported method DefaultStorage.Get should have comment or be unexported Open
Open
func (ds DefaultStorage) Get(key string) (interface{}, bool) {
- Exclude checks
exported method DefaultStorage.Load should have comment or be unexported Open
Open
func (ds *DefaultStorage) Load() error {
- Exclude checks
exported method DefaultStorage.Reset should have comment or be unexported Open
Open
func (ds *DefaultStorage) Reset(data map[string]interface{}, persist bool) error {
- Exclude checks
exported method DefaultStorage.List should have comment or be unexported Open
Open
func (ds *DefaultStorage) List() []interface{} {
- Exclude checks
if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) Open
Open
} else {
- Exclude checks
if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) Open
Open
} else {
- Exclude checks
exported method DefaultStorage.Persist should have comment or be unexported Open
Open
func (ds *DefaultStorage) Persist() error {
- Exclude checks