Question: How can you make a file build only on Windows?
- Check runtime.GOOS.
- Add a // +build windows comment anywhere in the file.
- Add a \_ prefix to the file name.
- Add a // +build windows comment at the top of the file.
Answer: The correct answer of the above question is Option D:Add a // +build windows comment at the top of the file.