context

package
v0.0.0-...-d2c5808 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WINDOWS = "windows"
	LINUX   = "linux"
	DARWIN  = "darwin"
)

Variables

This section is empty.

Functions

func Home

func Home() string

func Init

func Init(shell string)

func PathDelimiter

func PathDelimiter() string

Types

type Path

type Path []string

func (*Path) Append

func (p *Path) Append(path string)

func (*Path) Contains

func (p *Path) Contains(path string) bool

type Runtime

type Runtime struct {
	Shell string
	OS    string
	Home  string
	Arch  string
	Path  *Path
}
var Current *Runtime

used for caching runtime information and testing purposes

Jump to

Keyboard shortcuts

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