The console will show something like "open templetes/head.html file not exist" and which leads to the web ui failure.
I have solved the problem by adding
fname = strings.ReplaceAll(fname, "\\", "/")
which means change the Windows like separator into Unix like separator, before the filename sends to fs.Readfile()
However, maybe my solution is not so perfect and may cause other problems, could you please check if my solution always work nice or fix it with another way?
The console will show something like
"open templetes/head.html file not exist"
and which leads to the web ui failure. I have solved the problem by addingwhich means change the Windows like separator into Unix like separator, before the filename sends to
fs.Readfile()
However, maybe my solution is not so perfect and may cause other problems, could you please check if my solution always work nice or fix it with another way?