first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 21:52:23 +03:00
commit 880f412e2c
2662 changed files with 866266 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
//go:build !windows
package update
import "os"
// atomicReplace replaces oldPath with newPath using os.Rename.
// On Unix systems, this is atomic if both paths are on the same filesystem.
func atomicReplace(oldPath, newPath string) error {
return os.Rename(newPath, oldPath)
}