From 84ba7fbd7a050a18ed2f04fb47a5b1030a584d94 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Wed, 12 Aug 2015 14:41:46 +1000 Subject: [PATCH] Add "+build ignore" tags to the examples. --- example/freetype/main.go | 5 +++++ example/gamma/main.go | 5 +++++ example/raster/main.go | 5 +++++ example/round/main.go | 5 +++++ example/truetype/main.go | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/example/freetype/main.go b/example/freetype/main.go index 81f0d4d..d25fa2b 100644 --- a/example/freetype/main.go +++ b/example/freetype/main.go @@ -3,6 +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 +// +// 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. + package main import ( diff --git a/example/gamma/main.go b/example/gamma/main.go index a3d0493..adae4ea 100644 --- a/example/gamma/main.go +++ b/example/gamma/main.go @@ -3,6 +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 +// +// 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. + package main import ( diff --git a/example/raster/main.go b/example/raster/main.go index 45f23c1..a8d0baa 100644 --- a/example/raster/main.go +++ b/example/raster/main.go @@ -3,6 +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 +// +// 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. + package main import ( diff --git a/example/round/main.go b/example/round/main.go index 2333c45..efee89a 100644 --- a/example/round/main.go +++ b/example/round/main.go @@ -3,6 +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 +// +// 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. + // This program visualizes the quadratic approximation to the circle, used to // implement round joins when stroking paths. The approximation is used in the // stroking code for arcs between 0 and 45 degrees, but is visualized here diff --git a/example/truetype/main.go b/example/truetype/main.go index 04c26c1..bca1755 100644 --- a/example/truetype/main.go +++ b/example/truetype/main.go @@ -3,6 +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 +// +// 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. + package main import ( -- GitLab