Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
os: document that os.Rename will overwrite any existing file #13673
It might be nice to add that to the docs: for example on Windows it is not obvious (syscall_windows.go explicitly adds the
Wait, I'm confused - https://github.com/golang/go/blob/master/src/syscall/syscall_windows.go#L423 does not look like it actually would overwrite the target file, while https://github.com/golang/go/blob/master/src/internal/syscall/windows/syscall_windows.go#L130 does.