goenv

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package goenv returns environment variables that are used in various parts of the compiler. You can query it manually with the `tinygo env` subcommand.

Index

Constants

This section is empty.

Variables

View Source
var Keys = []string{
	"GOOS",
	"GOARCH",
	"GOROOT",
	"GOPATH",
	"GOCACHE",
	"TINYGOROOT",
}

Keys is a slice of all available environment variable keys.

View Source
var TINYGOROOT string

TINYGOROOT is the path to the final location for checking tinygo files. If unset (by a -X ldflag), then sourceDir() will fallback to the original build directory.

Functions

func Get

func Get(name string) string

Get returns a single environment variable, possibly calculating it on-demand. The empty string is returned for unknown environment variables.

Types

This section is empty.

Jump to

Keyboard shortcuts

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