gobyexample icon indicating copy to clipboard operation
gobyexample copied to clipboard

Error executing code due to file path on windows

Open Yudaev opened this issue 1 year ago • 1 comments

https://github.com/mmcgrana/gobyexample/blob/bc680ed6b2a7b2fab8a511242cccfdbc5a78b100/examples/defer/defer.go#L23

This code does not work in Windows. Corrected universal code: f := createFile(filepath.Join(os.TempDir(), "defer.txt"))

Yudaev avatar Nov 28 '24 13:11 Yudaev

Can you open a PR?

eliben avatar May 01 '25 19:05 eliben

Hi, Can I handle this project?

marktech0813 avatar Nov 03 '25 06:11 marktech0813