sys

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package sys provides access to args and environment variables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arg

func Arg(i int) (string, bool)

func ExecutablePath

func ExecutablePath() string

func GetEnv

func GetEnv(name string) string

func LookupEnv

func LookupEnv(name string) (value string, found bool)

Types

type ArgIter

type ArgIter int

ArgIter is the iterator implementation for system args.

func (ArgIter) Len

func (it ArgIter) Len() int

func (ArgIter) Nth

func (it ArgIter) Nth(i int) (arg string, ok bool)

func (ArgIter) SliceFrom

func (it ArgIter) SliceFrom(start int) ArgIter

type Auxv

type Auxv uintptr

type AuxvIter

type AuxvIter int

AuxvIter is the iterator implementation for auxvs.

func (AuxvIter) Len

func (it AuxvIter) Len() int

func (AuxvIter) Nth

func (it AuxvIter) Nth(i int) (aux Auxv, ok bool)

func (AuxvIter) SliceFrom

func (it AuxvIter) SliceFrom(start int) AuxvIter

type EnvIter

type EnvIter int

EnvIter is the iterator implementation for system environ.

func (EnvIter) Get

func (it EnvIter) Get(name string) (value string)

func (EnvIter) Len

func (i EnvIter) Len() int

func (EnvIter) Less

func (EnvIter) Less(i, j int) bool

func (EnvIter) Lookup

func (it EnvIter) Lookup(name string) (value string, found bool)

func (EnvIter) Nth

func (it EnvIter) Nth(i int) (env string, ok bool)

func (EnvIter) SliceFrom

func (i EnvIter) SliceFrom(start int) EnvIter

func (EnvIter) Swap

func (EnvIter) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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