Documentation
¶
Index ¶
- Constants
- func EnsureInstalled(opts ...Option) (string, error)
- func GetEnv(opts ...Option) []string
- func GetPath(opts ...Option) (string, error)
- func GetRoot(opts ...Option) string
- func GetVersion(opts ...Option) (string, error)
- func Install(opts ...Option) error
- func IsInstalled(opts ...Option) bool
- type Option
Constants ¶
View Source
const DefaultVersion = "0.40.1"
Variables ¶
This section is empty.
Functions ¶
func EnsureInstalled ¶ added in v0.0.2
func GetEnv ¶ added in v0.0.2
GetEnv returns os.Environ() + TINYGOROOT + prepended PATH for local installs. Safe to assign directly to exec.Command.Env.
func GetRoot ¶ added in v0.0.2
GetRoot returns the TINYGOROOT for a local install, or "" if tinygo is in PATH.
func GetVersion ¶ added in v0.0.2
func IsInstalled ¶ added in v0.0.2
Types ¶
type Option ¶ added in v0.0.2
type Option func(*config)
func WithInstallDir ¶ added in v0.0.2
func WithLogger ¶ added in v0.0.2
func WithVersion ¶ added in v0.0.2
Source Files
¶
Click to show internal directories.
Click to hide internal directories.