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:
parent
53602b2464
commit
dd23e21313
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue