Commit 0193139b authored by Russ Cox's avatar Russ Cox

undo CL 4557047 / 8818ac606e92

I don't think we've discussed this API enough.

««« original CL description
bike/shed: new package.

It comes up often enough that it's time to provide
the utility of a standard package.

R=r, mirtchovski, adg, rsc, n13m3y3r, ality, go.peter.90, lstoakes, iant, jan.mercl, bsiegert, robert.hencke, rogpeppe, befelemepeseveze, kevlar
CC=golang-dev
https://golang.org/cl/4557047
»»»

R=dsymonds, bradfitz, gri
CC=golang-dev
https://golang.org/cl/4576065
parent fb9ea799
...@@ -18,7 +18,6 @@ DIRS=\ ...@@ -18,7 +18,6 @@ DIRS=\
archive/zip\ archive/zip\
asn1\ asn1\
big\ big\
bike/shed\
bufio\ bufio\
bytes\ bytes\
cmath\ cmath\
......
# Copyright 2011 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
include ../../../Make.inc
TARG=bike/shed
GOFILES=\
colors.go\
include ../../../Make.pkg
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
/*
Package shed defines colors for bike sheds.
See http://red.bikeshed.org/ for more details.
TODO: More colors, colour support, stripes, methods, ponies.
*/
package shed
// A Color represents a color, or a colour if you're colonial enough.
type Color uint8
const (
Red Color = iota
Green
Yellow
Blue
Purple
Magenta
Chartreuse
Cyan
)
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package shed
import (
"testing"
)
func TestCompilerIsNotColorBlind(t *testing.T) {
if Red == Green {
t.Error("Expected Red != Green, but couldn't distinguish them")
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment