code: func appendModels(pkgpath, controllerName string, realTypes []string) {
  	for _, realType := range realTypes {
  		if realType != "" && !isBasicType(strings.TrimLeft(realType, "[]")) &&
  			!strings.HasPrefix(realType, astTypeMap) && !strings.HasPrefix(realType, "&") {
  			if _, ok := modelsList[pkgpath+controllerName][realType]; ok {
  				continue
  			}
  			_, mod, newRealTypes := getModel(realType)
  			modelsList[pkgpath+controllerName][realType] = mod
  			appendModels(pkgpath, controllerName, newRealTypes)
  		}
  	}
  }
docs: // append models