Documentation ¶
Overview ¶
Package golib defines utilities for using the Go toolchain to build Vanadium binaries.
Index ¶
Constants ¶
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.