golib

package
v0.0.0-...-366ddcd Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2016 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Overview

Package golib defines utilities for using the Go toolchain to build Vanadium binaries.

Index

Constants

View Source
const ExtraLDFlagsFlagDescription = `` /* 310-byte string literal not displayed */

ExtraLDFlagsFlagDescription describes the --extra-ldflags flag, to be added to any tool that allows adding extra ldflags to those automatically generated.

Variables

This section is empty.

Functions

func PrepareGo

func PrepareGo(jirix *jiri.X, env map[string]string, args []string, extraLDFlags, installSuffix string) ([]string, error)

PrepareGo runs recommended checks on the environment and related commands before execution of the Go toolchain. The Go toolchain should use the returned args. PrepareGo for the 'env' strips any enviornment variables that the go command doesn't understand.

For example, it ensures that all Go files generated by the VDL compiler are up-to-date. It also generates flags so that build information can be embedded in resulting binaries.

Types

This section is empty.

Jump to

Keyboard shortcuts

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