route support no request and response (#178)
* add more test and support no request and response * fix slash when run on windows * optimize test
This commit is contained in:
@@ -28,6 +28,7 @@ func getParentPackage(dir string) (string, error) {
|
||||
}
|
||||
parent := filepath.Clean(goctlutil.JoinPackages(p.GoMod.Module, absPath[len(goModePath):]))
|
||||
parent = strings.ReplaceAll(parent, "\\", "/")
|
||||
parent = strings.ReplaceAll(parent, `\`, "/")
|
||||
return parent, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user