I am trying to read a file on windows in golang. The path is C:\Users\lenovo\Downloads\1.jpeg, and I write like this:
filepath := "C:\Users\lenovo\Downloads\1.jpeg"
This declaration and assignment is illegal by itself as it is marked red in vscode. I've been reading about how golang uses filepath package to handle path issues, but it does not cover the situation where \ is the separator.
By the way, if a \ is added after each \ in the statement above, it works.