code: func convertToGoType(tip, items string) string {
  	// check for raml builtin type
  	if v, ok := typeMap[tip]; ok {
  		return v
  	}
  
  	if v := mapDate(tip); v != "" {
  		return v
  	}
  
  	// creates raml.Type object for this type,
  	// so we can use raml.Type methods
  	ramlType := raml.Type{
  		Type:  tip,
  		Items: items,
  	}
  
  	// other types that need some processing
  	switch {
  	case ramlType.IsBidimensiArray():
  		return "[][]" + ramlType.BidimensiArrayType()
  	case ramlType.IsArray():
  		return "[]" + convertToGoType(ramlType.ArrayType(), "")
  	case ramlType.IsUnion():
  		return unionNewName(tip)
  	case ramlType.IsMultipleInheritance():
  		parents, _ := ramlType.MultipleInheritance()
  		return multipleInheritanceNewName(parents)
  	}
  	return commons.NormalizePkgName(tip)
  }
docs: // convert from raml type to go type