system

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package system provides utilities for system-level operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type System

type System interface {
	// CommandExists checks if a command is available in the system PATH.
	CommandExists(name string) bool
	// Getuid returns the numeric user ID of the caller.
	Getuid() int
	// Getgid returns the numeric group ID of the caller.
	Getgid() int
}

System provides an interface for system-level operations.

func New

func New() System

New creates a new System instance.

Jump to

Keyboard shortcuts

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