sys

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

System functions.

Index

Constants

View Source
const (
	EX_OK       = 0
	EX_ERROR    = 1
	EX_USAGE    = 2
	EX_DATAERR  = 3
	EX_NOINPUT  = 4
	EX_NOTEXEC  = 126
	EX_NOTFOUND = 127
)
View Source
const (
	MODE_ALL  = 0777
	MODE_DIR  = 0755
	MODE_FILE = 0644
)

Variables

This section is empty.

Functions

func Args

func Args() (args, xargs []string)

func Debug

func Debug(d string)

func Error

func Error(a ...any)

func ExitCall

func ExitCall(name string, args ...string)

func Fatal

func Fatal(a ...any)

func Final

func Final(a ...any)

func Print

func Print(a ...any)

func StdCall

func StdCall(name string, args ...string) (string, error)

func Stdin

func Stdin() (in string, err error, code int)

func Usage

func Usage(u string)

Types

type Any

type Any func(a ...any)
var (
	Progress Any = Print
)

Jump to

Keyboard shortcuts

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