pub fn write_auth_file(path: &Path, data: &[u8]) -> Result<(), String>
os.WriteFile(path, data, 0o600): the error is Go’s *PathError text for the step that failed (open, write, then close).
os.WriteFile(path, data, 0o600)
*PathError