mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-21 10:58:23 +00:00
Listing of packages in snapshot.
This commit is contained in:
1 parent
fe61ae1b41
commit
4d950b79ab
5 files changed
+39
No files matched your search
Vendored
+9
@@ -103,3 +103,12 @@ func (l *PackageRefList) Decode(input []byte) error {
|
||||
decoder := codec.NewDecoderBytes(input, &codec.MsgpackHandle{})
|
||||
return decoder.Decode(l)
|
||||
}
|
||||
|
||||
// ForEach calls handler for each package ref in list
|
||||
//
|
||||
// TODO: Error handling
|
||||
func (l *PackageRefList) ForEach(handler func([]byte)) {
|
||||
for _, p := range l.Refs {
|
||||
handler(p)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user