A bit of niceness: more hints for first-time user.

This commit is contained in:
Andrey Smirnov
2014-01-10 13:21:37 +04:00
parent 356187f3ae
commit 01338d6037
6 changed files with 40 additions and 16 deletions
+6
View File
@@ -172,3 +172,9 @@ func (collection *SnapshotCollection) ForEach(handler func(*Snapshot) error) err
}
return err
}
// Len returns number of snapshots in collection
// ForEach runs method for each snapshot
func (collection *SnapshotCollection) Len() int {
return len(collection.list)
}