From b3bd3d29aac4feaec7e90088f10e663e1cbfae35 Mon Sep 17 00:00:00 2001 From: "Hyang-Ah (Hana) Kim" Date: Tue, 28 Jul 2015 12:29:19 -0400 Subject: [PATCH] example: limit examples build to linux or darwin. windows and other non-mobile os support is not there yet. Change-Id: Ie9c456b646bfa0b0c489e1b6344b5afca4801c5f Reviewed-on: https://go-review.googlesource.com/12744 Reviewed-by: David Crawshaw --- example/audio/main.go | 2 ++ example/basic/main.go | 2 ++ example/network/main.go | 2 ++ example/sprite/main.go | 2 ++ 4 files changed, 8 insertions(+) diff --git a/example/audio/main.go b/example/audio/main.go index 8837196..7115057 100644 --- a/example/audio/main.go +++ b/example/audio/main.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build darwin linux + // An app that makes a sound as the gopher hits the walls of the screen. // // Note: This demo is an early preview of Go 1.5. In order to build this diff --git a/example/basic/main.go b/example/basic/main.go index b48096c..d04c621 100644 --- a/example/basic/main.go +++ b/example/basic/main.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build darwin linux + // An app that draws a green triangle on a red background. // // Note: This demo is an early preview of Go 1.5. In order to build this diff --git a/example/network/main.go b/example/network/main.go index 25e1cba..e720df3 100644 --- a/example/network/main.go +++ b/example/network/main.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build darwin linux + // An app that paints green if golang.org is reachable when the app first // starts, or red otherwise. // diff --git a/example/sprite/main.go b/example/sprite/main.go index b5c06f9..0922b3a 100644 --- a/example/sprite/main.go +++ b/example/sprite/main.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build darwin linux + // An app that demonstrates the sprite package. // // Note: This demo is an early preview of Go 1.5. In order to build this