| // Copyright 2012 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. |
| // This file contains the code snippets included in "The Laws of Reflection." |
| // Reader is the interface that wraps the basic Read method. |
| Read(p []byte) (n int, err error) |
| // Writer is the interface that wraps the basic Write method. |
| Write(p []byte) (n int, err error) |
| func typeAssertions() (interface{}, error) { // OMIT |
| tty, err := os.OpenFile("/dev/tty", os.O_RDWR, 0) |