Go language which frees you from "unused" errors!
You can download from GitHub Releases.
docker run -it nwtgck/golang
$GO_IGNOROE_UNUSED_VARHere is main1.go. Note that the variable a is not used at all.
// main1.go
package main
func main() {
var a = 1
}
You can build main1 as follows to ignore "imported and not used: OOO" error!
GO_IGNORE_UNUSED_VAR=1 go build main1.go
$GO_IGNOROE_UNUSED_PKGHere is main2.go. Note that the package fmt is not used at all.
// main2.go
package main
import "fmt"
func main() {
}
You can build main2 as follows to ignore "OOO declared and not used" error!
GO_IGNORE_UNUSED_PKG=1 go build main2.go
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.
Content type
Image
Digest
Size
368.5 MB
Last updated
almost 8 years ago
docker pull nwtgck/golang