internal/config/writefile_windows.go (7 lines of code) (raw):

package config import ( "os" ) // Note: this is not atomic, but apparently there's no way to atomically // // replace a file on windows which is why renameio doesn't support // windows. func WriteFile(filename string, data []byte, perm os.FileMode) error { return os.WriteFile(filename, data, perm) }