Selaa lähdekoodia

Fix golint 'comment on exported (method|type) ...' warnings

xormplus 9 vuotta sitten
vanhempi
commit
d990f33df4
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 2 2
      lru_cacher.go
  2. 1 1
      memroy_store.go

+ 2 - 2
lru_cacher.go

@@ -92,7 +92,7 @@ func (m *LRUCacher) GC() {
 	}
 }
 
-// Get all bean's ids according to sql and parameter from cache
+// GetIds returns all bean's ids according to sql and parameter from cache
 func (m *LRUCacher) GetIds(tableName, sql string) interface{} {
 	m.mutex.Lock()
 	defer m.mutex.Unlock()
@@ -121,7 +121,7 @@ func (m *LRUCacher) GetIds(tableName, sql string) interface{} {
 	return nil
 }
 
-// Get bean according tableName and id from cache
+// GetBean returns bean according tableName and id from cache
 func (m *LRUCacher) GetBean(tableName string, id string) interface{} {
 	m.mutex.Lock()
 	defer m.mutex.Unlock()

+ 1 - 1
memroy_store.go

@@ -12,7 +12,7 @@ import (
 
 var _ core.CacheStore = NewMemoryStore()
 
-// memory store
+// MemoryStore represents in-memory store
 type MemoryStore struct {
 	store map[interface{}]interface{}
 	mutex sync.RWMutex