@cryptotaxi247 / kubo / commits / 68a007945

feat(eventlog) add Pair method

Brian Tiger Chow committed Feb 1, 2015 at 03:07 UTC 68a007945b2f4ff112505f1aeee0e62c77856e0d
1 file changed +6
thirdparty/eventlog/loggable.go
+6
@@ -26,3 +26,9 @@ func Deferred(key string, f func() string) Loggable {
26 }
27 return LoggableF(function)
28 }
29 +
30 +func Pair(key string, l Loggable) Loggable {
31 + return LoggableMap{
32 + key: l,
33 + }
34 +}