xos

package
v1.58.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: MPL-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package xos provides cross-platform helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrangeExtraFiles

func ArrangeExtraFiles(cmd *exec.Cmd, files ...*os.File) error

func CreateNewProcessGroup

func CreateNewProcessGroup() *syscall.SysProcAttr

func IsAdminUser

func IsAdminUser() (bool, error)

func IsWindowsJunctionPoint added in v1.43.3

func IsWindowsJunctionPoint(filename string) (ok bool, err error)

IsWindowsJunctionPoint reports whether a filename is a Windows junction point.

func SameSocket

func SameSocket(a, b interface{}) bool

func SocketStat

func SocketStat(path string) (interface{}, error)

func WriteFile added in v1.31.0

func WriteFile(filename string, data []byte, perm os.FileMode) error

WriteFile writes the given file with the given data and permissions.

Where possible (i.e. not on windows) it will use an atomic write process which removes the possibility of a partial file being written during a crash or error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL