From dd23e213139c29c27e6d83ac761ad68af0304cf9 Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Mon, 24 Mar 2014 17:31:30 -0700 Subject: [PATCH] beam/data: Message.Bytes() convenience method Docker-DCO-1.1-Signed-off-by: Solomon Hykes (github: shykes) --- beam/data/message.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beam/data/message.go b/beam/data/message.go index fffa228..382308f 100644 --- a/beam/data/message.go +++ b/beam/data/message.go @@ -45,3 +45,7 @@ func (m Message) Del(k string) Message { func (m Message) String() string { return string(m) } + +func (m Message) Bytes() []byte { + return []byte(m) +}