xos

package
v1.42.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

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 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