(ctx *build.Context)
| 264 | } |
| 265 | |
| 266 | func pack_build_context(ctx *build.Context) go_build_context { |
| 267 | return go_build_context{ |
| 268 | GOARCH: ctx.GOARCH, |
| 269 | GOOS: ctx.GOOS, |
| 270 | GOROOT: ctx.GOROOT, |
| 271 | GOPATH: ctx.GOPATH, |
| 272 | CgoEnabled: ctx.CgoEnabled, |
| 273 | UseAllFiles: ctx.UseAllFiles, |
| 274 | Compiler: ctx.Compiler, |
| 275 | BuildTags: ctx.BuildTags, |
| 276 | ReleaseTags: ctx.ReleaseTags, |
| 277 | InstallSuffix: ctx.InstallSuffix, |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | func unpack_build_context(ctx *go_build_context) package_lookup_context { |
| 282 | return package_lookup_context{ |