sys

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 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 added in v0.12.0

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

func Debug added in v0.18.0

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 added in v0.17.0

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 added in v0.17.0

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