// relPathToRelGoPath takes a relative os path and returns the relative go
// package path. For unix nothing will change but for windows \ will be
// converted to /.
relPathToRelGoPath takes a relative os path and returns the relative go
package path. For unix nothing will change but for windows \ will be
converted to /.
// relPathToRelGoPath takes a relative os path and returns the relative go // package path . For unix nothing will change but for windows \ will be // converted to / .
func relPathToRelGoPath(modAbsPath, absPath string) string {
	if absPath == "." {
		return ""
	}
	path := strings.TrimPrefix(absPath, modAbsPath)
	pathItems := strings.Split(path, string(filepath.Separator))
	return strings.Join(pathItems, "/")
}
func relPathToRelGoPath ( modAbsPath , absPath string ) string { if absPath == " " { return " " } path := strings . TrimPrefix ( absPath , modAbsPath ) pathItems := strings . Split ( path , string ( filepath . Separator ) ) return strings . Join ( pathItems , " " ) }
relPathToRelGoPath takes a relative os path and returns the relative go
package path.
relPathToRelGoPath takes a relative os path and returns the relative go package path .