code: func (t *Type) typeName() string {
  	if strings.HasSuffix(t.Type, "[]") {
  		return strings.TrimSuffix(t.Type, "[]")
  	}
  	return t.Type
  }
docs: // typeName returns the canonical name of the type. If the type is 'Person[]', then
  // this method returns 'Person'