// GetBody returns a previously set body of type bodyType
// if no body for bodyType has been set, the an empty byte slice is returned
GetBody returns a previously set body of type bodyType
if no body for bodyType has been set, the an empty byte slice is returned
// GetBody returns a previously set body of type bodyType // if no body for bodyType has been set the an empty byte slice is returned
func (m *GoogleMessage) GetBody(bodyType BodyType) (*textproto.MIMEHeader, []byte) {
	name := m.bodyNameByType(bodyType)
	if m.Has(name) {
		return &(m.parts[name].Header), m.parts[name].Data
	}
	return nil, []byte{}
}
func ( m * GoogleMessage ) GetBody ( bodyType BodyType ) ( * textproto . MIMEHeader , [ ] byte ) { name := m . bodyNameByType ( bodyType ) if m . Has ( name ) { return & ( m . parts [ name ] . Header ) , m . parts [ name ] . Data } return nil , [ ] byte { } }
GetBody returns a previously set body of type bodyType
if no body for bodyType has been set, the an empty byte slice is returned
GetBody returns a previously set body of type bodyType if no body for bodyType has been set the an empty byte slice is returned