HUB
Sign inSign up
golang logo

nwtgck/golang

By nwtgck

•Updated almost 8 years ago

The Go programming language

Image
0

3.3K

nwtgck/golang repository overview

⁠Go language without "unused" errors!

CircleCI

Go language which frees you from "unused" errors!

⁠Try with built compiler

You can download from GitHub Releases.

⁠Try with Docker

docker run -it nwtgck/golang

⁠Usages

⁠$GO_IGNOROE_UNUSED_VAR

Here 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_PKG

Here 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 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.

⁠Download and Install
⁠Binary Distributions

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.

⁠Install From Source

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.

⁠Contributing

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.

Tag summary

Content type

Image

Digest

Size

368.5 MB

Last updated

almost 8 years ago

docker pull nwtgck/golang