Golang go/build.Context type example

package go/build

A Context specifies the supporting context for a build.

Golang go/build.Context type usage example

 build.Default = build.Context{
 GOROOT: goroot,
 Compiler: "gc",
 // see (http://golang.org/pkg/go/build/#Context) for additional parameters 
 // to configure
 }

Reference :

http://golang.org/pkg/go/build/#Context

Advertisement