style: gofumpt linting (#15605)

This commit is contained in:
Marko
2023-03-30 06:27:38 +00:00
committed by GitHub
parent 24344fb382
commit 1f2875d445
56 changed files with 97 additions and 97 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ func (g *FileGen) TypeExpr(typ reflect.Type) (ast.Expr, error) {
var genericTypeNameRegex = regexp.MustCompile(`(\w+)\[(.*)]`)
func (g *FileGen) importGenericTypeParams(typeName string, pkgPath string) (newTypeName string) {
func (g *FileGen) importGenericTypeParams(typeName, pkgPath string) (newTypeName string) {
// a generic type parameter from the same package the generic type is defined won't have the
// full package name so we need to compare it with the final package part (the default import prefix)
// ex: for a/b.C in package a/b, we'll just see the type param b.C.