code: func (s *Spec) NewMsg(code uint64) (interface{}, bool) {
  	s.init()
  	typ, ok := s.types[code]
  	if !ok {
  		return nil, false
  	}
  	return reflect.New(typ).Interface(), true
  }
docs: // NewMsg construct a new message type given the code