Closed minhnhatnoe closed 1 year ago
Perhaps we should add to the embed
package documentation somewhere that fs.FS
(or embed.Content
) always expose a /
-delimited file system, and is converting /
to \
on Windows even on development build.
Perhaps we should add to the
embed
package documentation somewhere thatfs.FS
(orembed.Content
) always expose a/
-delimited file system, and is converting/
to\
on Windows even on development build.
Okay. Added doc.go file for package embed.
Windows uses '\' as path separator, while Linux uses '/'. However, Go's embed file system uses '/' on all platforms.
To reproduce this, delete all leftover database files then run the Kjudge executable to trigger db migration files access.