Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPackageManagerPath ¶
IsPackageManagerPath returns true if the binary path appears to be managed by a system package manager (homebrew, snap, nix, apt).
func ReplaceBinary ¶
ReplaceBinary atomically replaces the binary at execPath with newData. Resolves symlinks before replacement. Uses os.Rename for atomic swap on the same filesystem; falls back to copy+chmod for cross-filesystem.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.