env

package
v1.0.0-pre.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 8 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

Index

Constants

View Source
const (
	LLGoCompilerPkg    = "github.com/xgo-dev/llgo"
	LLGoRuntimePkgName = "runtime"
	LLGoRuntimePkg     = LLGoCompilerPkg + "/" + LLGoRuntimePkgName
)

Variables

This section is empty.

Functions

func BuildTime

func BuildTime() string

BuildTime returns the build time of the running LLGo binary.

func Devel

func Devel() bool

func ExpandEnvSlice

func ExpandEnvSlice(templates []string, envs map[string]string) []string

ExpandEnvSlice expands template variables in a slice of strings

func ExpandEnvSliceWithDefault

func ExpandEnvSliceWithDefault(templates []string, envs map[string]string, defaultValue ...string) []string

ExpandEnvSliceWithDefault expands template variables in a slice with optional default for {}

func ExpandEnvWithDefault

func ExpandEnvWithDefault(template string, envs map[string]string, defaultValue ...string) string

ExpandEnvWithDefault expands template variables with optional default for {}

func GOROOT

func GOROOT() (string, error)

func GOROOTAndGOVERSIONWithEnv

func GOROOTAndGOVERSIONWithEnv(env []string) (goroot, goversion string, err error)

func GOROOTWithEnv

func GOROOTWithEnv(env []string) (string, error)

func GOVERSIONWithEnv

func GOVERSIONWithEnv(env []string) (string, error)

func GoEnvWithEnv

func GoEnvWithEnv(env []string, vars ...string) ([]string, error)

func LLGoCacheDir

func LLGoCacheDir() string

func LLGoROOT

func LLGoROOT() string

func LLGoRuntimeDir

func LLGoRuntimeDir() string

func Version

func Version() string

Version returns the version of the running LLGo binary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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