beam/data: Message.Bytes() convenience method

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
This commit is contained in:
Solomon Hykes 2014-03-24 17:31:30 -07:00
parent 4fcace2d34
commit 75f20c69a8
1 changed files with 4 additions and 0 deletions

View File

@ -45,3 +45,7 @@ func (m Message) Del(k string) Message {
func (m Message) String() string { func (m Message) String() string {
return string(m) return string(m)
} }
func (m Message) Bytes() []byte {
return []byte(m)
}