Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Commit

Permalink
go-tour: omit tour programs from normal builds
Browse files Browse the repository at this point in the history
This makes "go build code.google.com/p/go-tour/..." succeed.

LGTM=minux.ma
R=golang-codereviews, minux.ma
CC=golang-codereviews
https://codereview.appspot.com/67750043
  • Loading branch information
adg committed Feb 24, 2014
1 parent cbb6a95 commit e1d46a2
Show file tree
Hide file tree
Showing 69 changed files with 138 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/prog/tour/advanced-exercise-complex-cube-roots.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/array.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/basic-types.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/buffered-channels.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/channels.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/constants.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/default-selection.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/exercise-equivalent-binary-trees.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "code.google.com/p/go-tour/tree"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/exercise-errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/exercise-fibonacci-closure.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/exercise-http-handlers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/exercise-images.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/exercise-loops-and-functions.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/exercise-maps.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/exercise-rot-reader.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/exercise-slices.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "code.google.com/p/go-tour/pic"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/exercise-web-crawler.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/exported-names.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/for-continued.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/for-is-gos-while.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/for.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/forever.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

func main() {
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/function-closures.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/function-values.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/functions-continued.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/functions.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/goroutines.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/hello.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/if-and-else.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/if-with-a-short-statement.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/if.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/images.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/imports.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/interfaces-are-satisfied-implicitly.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/interfaces.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/making-slices.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/map-literals-continued.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/map-literals.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/maps.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/methods-continued.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/methods-with-pointer-receivers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/methods.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/multiple-results.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/mutating-maps.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/named-results.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/nil-slices.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/numeric-constants.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/packages.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/pointers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/range-and-close.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/range-continued.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/range.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/sandbox.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/select.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/short-variable-declarations.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/slices.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/slicing-slices.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/struct-fields.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/struct-literals.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/structs.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/switch-evaluation-order.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/switch-with-no-condition.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/switch.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/the-new-function.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import "fmt"
Expand Down
2 changes: 2 additions & 0 deletions content/prog/tour/type-conversions.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build OMIT

package main

import (
Expand Down
Loading

0 comments on commit e1d46a2

Please sign in to comment.