Windows Full Path

How can I access the zip file correctly in golang?

r, err := zip.OpenReader("C:\Users\rob66\Downloads\")

Thanks in advance.

You have 2 options, either escape the backslashes by doubling them or use unified path-seperators (aka slash), windows does understand the latter since Windows 7.

1 Like

It works! Danke schön.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.