func relpath(p string) string {
	cwd, err := os.Getwd()
	if err != nil {
		return p
	}

	if strings.HasPrefix(p, cwd) {
		return "./" + strings.TrimLeft(p[len(cwd):], "/")
	}

	return p
}
// Get path relative to cwd.
Get path relative to cwd.
// Get path relative to cwd .
func relpath(p string) string {
	cwd, err := os.Getwd()
	if err != nil {
		return p
	}
	if strings.HasPrefix(p, cwd) {
		return "./" + strings.TrimLeft(p[len(cwd):], "/")
	}
	return p
}
func relpath ( p string ) string { cwd , err := os . Getwd ( ) if err != nil { return p } if strings . HasPrefix ( p , cwd ) { return " " + strings . TrimLeft ( p [ len ( cwd ) : ] , " " ) } return p }
Get path relative to cwd.
Get path relative to cwd .