func toGoTypeName(name string) string {
	switch name {
	case "string":
		return "string"
	case "integer":
		return "int"
	case "boolean":
		return "bool"
	}
	return name
}
toGoTypeName converts from swagger/goa type names to go type names
package main
import (
	"encoding/json"
	"fmt"
	"mime"
	"regexp"
	"strings"
	"github.com/go-openapi/inflect"
	"github.com/rightscale/rsc/gen"
)
var (
	partsRegexp = regexp.MustCompile("[^[:alnum:]]+")
	blankRegexp = regexp.MustCompile(`^\s*$`)
)
func toGoReturnTypeName(name string, slice bool) string {
	slicePrefix := ""
	if slice {
		slicePrefix = "[]"
	}
	return fmt.Sprintf("%s*%s", slicePrefix, toGoTypeName(name))
}