ducky/devices

Paddy 2015-11-15 Parent:7bc6a84ac906 Child:f5a9d5f8f28d

7:1e2743834209 Go to Latest

ducky/devices/memstore_test.go

Add ToMap and ToSlice helpers. Add helper functions that convert a map of ID-keyed Devices into a slice, and back. We'll use these a lot (especially with GetMany) as shorthand helper functions.

History
1 package devices
3 func init() {
4 storers = append(storers, NewMemstore())
5 }