Use an "example" build tag instead of "ignore".

The golang-dev discussion is at
https://groups.google.com/d/topic/golang-dev/qKpxZiNABcY/discussion
This commit is contained in:
Nigel Tao 2016-04-10 15:05:36 +10:00
parent f9531a3606
commit c67e4d98d2
7 changed files with 21 additions and 14 deletions

View File

@ -3,10 +3,11 @@
// FreeType License or the GNU General Public License version 2 (or
// any later version), both of which can be found in the LICENSE file.
// +build ignore
// +build example
//
// This build tag means that "go install github.com/golang/freetype/..."
// doesn't install this example program. Use "go run main.go" to run it.
// doesn't install this example program. Use "go run main.go" to run it or "go
// install -tags=example" to install it.
package main

View File

@ -3,10 +3,11 @@
// FreeType License or the GNU General Public License version 2 (or
// any later version), both of which can be found in the LICENSE file.
// +build ignore
// +build example
//
// This build tag means that "go install github.com/golang/freetype/..."
// doesn't install this example program. Use "go run main.go" to run it.
// doesn't install this example program. Use "go run main.go" to run it or "go
// install -tags=example" to install it.
package main

View File

@ -3,10 +3,11 @@
// FreeType License or the GNU General Public License version 2 (or
// any later version), both of which can be found in the LICENSE file.
// +build ignore
// +build example
//
// This build tag means that "go install github.com/golang/freetype/..."
// doesn't install this example program. Use "go run main.go" to run it.
// doesn't install this example program. Use "go run main.go" to run it or "go
// install -tags=example" to install it.
package main

View File

@ -3,10 +3,11 @@
// FreeType License or the GNU General Public License version 2 (or
// any later version), both of which can be found in the LICENSE file.
// +build ignore
// +build example
//
// This build tag means that "go install github.com/golang/freetype/..."
// doesn't install this example program. Use "go run main.go" to run it.
// doesn't install this example program. Use "go run main.go" to run it or "go
// install -tags=example" to install it.
package main

View File

@ -3,10 +3,11 @@
// FreeType License or the GNU General Public License version 2 (or
// any later version), both of which can be found in the LICENSE file.
// +build ignore
// +build example
//
// This build tag means that "go install github.com/golang/freetype/..."
// doesn't install this example program. Use "go run main.go" to run it.
// doesn't install this example program. Use "go run main.go" to run it or "go
// install -tags=example" to install it.
package main

View File

@ -3,10 +3,11 @@
// FreeType License or the GNU General Public License version 2 (or
// any later version), both of which can be found in the LICENSE file.
// +build ignore
// +build example
//
// This build tag means that "go install github.com/golang/freetype/..."
// doesn't install this example program. Use "go run main.go" to run it.
// doesn't install this example program. Use "go run main.go" to run it or "go
// install -tags=example" to install it.
// This program visualizes the quadratic approximation to the circle, used to
// implement round joins when stroking paths. The approximation is used in the

View File

@ -3,10 +3,11 @@
// FreeType License or the GNU General Public License version 2 (or
// any later version), both of which can be found in the LICENSE file.
// +build ignore
// +build example
//
// This build tag means that "go install github.com/golang/freetype/..."
// doesn't install this example program. Use "go run main.go" to run it.
// doesn't install this example program. Use "go run main.go" to run it or "go
// install -tags=example" to install it.
package main