code: func encodeMsgPack(msg interface{}) ([]byte, error) {
  	var buf bytes.Buffer
  	err := codec.NewEncoder(&buf, msgpackHandle).Encode(msg)
  	return buf.Bytes(), err
  }
docs: // encodeMsgPack is used to encode an object with msgpack