osutil

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const EnvColimaBinary = "COLIMA_BINARY"

Variables

This section is empty.

Functions

func Executable

func Executable() string

Executable returns the path name for the executable that started the current process.

Types

type EnvVar added in v0.7.4

type EnvVar string

EnvVar is environment variable

func (EnvVar) Bool added in v0.7.4

func (e EnvVar) Bool() bool

Bool returns the environment variable value as boolean.

func (EnvVar) Exists added in v0.7.4

func (e EnvVar) Exists() bool

Exists checks if the environment variable has been set.

func (EnvVar) Val added in v0.7.4

func (e EnvVar) Val() string

Bool returns the environment variable value.

func (EnvVar) ValOr added in v0.8.2

func (e EnvVar) ValOr(val string) string

Or returns the environment variable value if set, otherwise returns val.

func (EnvVar) WithPath added in v0.10.0

func (e EnvVar) WithPath(p string) string

WithPath appends p to the environment variable value as path list.

type Socket added in v0.5.0

type Socket string

Socket is a unix socket

func (Socket) File added in v0.5.0

func (s Socket) File() string

File returns the file path for the socket.

func (Socket) Unix added in v0.5.0

func (s Socket) Unix() string

Unix returns the unix address for the socket.

Jump to

Keyboard shortcuts

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