On 2020-04-08 10:43, 洪嘉鴻 wrote: > lxn/walk use lxn/win, which wraps windows api,so you can not use it under > linux
You could also look into wsl. The key is to understand go.exe calls go from Windows with a wsl shell. Also copying wsl env variables to Windows execution. env GOOS=windows WSLENV=GOOS go.exe build Alternatively you could maintain two installs of go. Linux/Windows -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/d2390175-61df-bda5-3eb6-fee44349ef65%40gmail.com.