los

package
v1.8.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OSWindows = "windows"
	OSLinux   = "linux"
	OSDarwin  = "darwin"

	WinPathSep = `\`
	NixPathSep = "/"

	NixEnvVarSep  = ":"
	NixPathEnvVar = "PATH"

	WinEnvVarSep  = ";"
	WinPathEnvVar = "Path"
)

Variables

View Source
var (
	OS string

	PathSep string

	ExecExt    string
	LibraryExt string

	// Environment variable related
	EnvVarSep  string
	PathEnvVar string
)

Functions

func BuildPathEnv

func BuildPathEnv(value ...string) string

func GetPathEnv

func GetPathEnv() string

func IsKnownOS

func IsKnownOS(os string) bool

func TrimPathSep

func TrimPathSep(path string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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