gr

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

README

gr

go.dev reference

This tool provides enhanced go run-like functionality:

  • it propagates the exit code of the tool being run,
  • it caches built binaries, so that the second and subsequent runs are nearly instantaneous.

There are some limitations, yet unresolved, to be aware of:

  • it works only on packages, not on individual files,
  • it does not support pre-modules mode,
  • it supports only Linux and macOS.

Usage

gr [go build options] <package> [arguments].

gr supports a subset of go build options, specifically those meaningful for go run.

gr correctly handles GOOS, GOARCH, CGO_ENABLED, and other environment variables that influence the compilation process.

gr reads the GO environment variable to locate the go binary, and if not found, it defaults to running it from PATH.

Usage in your project

See gr-example.bash for an example trampoline to build and run gr in your project.

Copyright Onboard, Inc.

Licensed under the Apache 2.0 license.

Authors:

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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