osutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 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

Overview

Package osutil holds operating specific utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBinDir

func DefaultBinDir() string

DefaultBinDir returns the os specific default bin directory. For test benchmarks.

func DefaultEditor

func DefaultEditor() string

DefaultEditor returns the os specific default text editor.

func ExecFormatError

func ExecFormatError() string

ExecFormatError returns the os specific error for a binary that is not executable.

func Executable

func Executable(elements ...string) string

Executable returns the given path parts joined with the os specific path separator and with the os specific executable script extension appended.

func ExecutableScript

func ExecutableScript(elements ...string) string

ExecutableScript returns the given path parts joined with the os specific path separator and with the os specific executable script extension appended.

func HomeEnvVar

func HomeEnvVar() string

HomeEnvVar returns the os specifiv home environment variable.

func HomeEnvVarName

func HomeEnvVarName() string

HomeEnvVarName returns the os specific name of the home environment variable.

func PathEnvVar

func PathEnvVar() string

PathEnvVar returns the os specific path environment variable.

func PathEnvVarName

func PathEnvVarName() string

PathEnvVarName returns the os specific name of the path environment variable.

func PathSeparator

func PathSeparator() string

PathSeparator returns the os.PathSeparator as a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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