Left: | ||
Right: |
OLD | NEW |
---|---|
1 // Copyright 2012 The Go Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style | |
3 // license that can be found in the LICENSE file. | |
4 | |
5 // This file contains the code snippets included in "The Laws of Reflection." | |
6 | |
1 package main | 7 package main |
2 | 8 |
3 import ( | 9 import ( |
4 "bufio" | 10 "bufio" |
5 "bytes" | 11 "bytes" |
6 "io" | 12 "io" |
7 "os" | 13 "os" |
8 ) | 14 ) |
9 | 15 |
10 type MyInt int | 16 type MyInt int |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
47 w = r.(io.Writer) | 53 w = r.(io.Writer) |
48 // STOP OMIT | 54 // STOP OMIT |
49 var empty interface{} | 55 var empty interface{} |
50 empty = w | 56 empty = w |
51 // STOP OMIT | 57 // STOP OMIT |
52 return empty, err | 58 return empty, err |
53 } | 59 } |
54 | 60 |
55 func main() { | 61 func main() { |
56 } | 62 } |
OLD | NEW |