diff --git a/harness/reflect.go b/harness/reflect.go index d79058f..c1bb8fc 100644 --- a/harness/reflect.go +++ b/harness/reflect.go @@ -598,7 +598,7 @@ func getValidationKeys(fset *token.FileSet, funcDecl *ast.FuncDecl, imports map[ } if typeExpr := NewTypeExpr("", key); typeExpr.Valid { - lineKeys[fset.Position(callExpr.End()).Line] = typeExpr.TypeName("") + lineKeys[fset.Position(callExpr.Pos()).Line] = typeExpr.TypeName("") } return true })