LEFT | RIGHT |
(Both sides are equal) |
1 // +build api_tool | 1 // +build api_tool |
2 | 2 |
3 // Copyright 2011 The Go Authors. All rights reserved. | 3 // Copyright 2011 The Go Authors. All rights reserved. |
4 // Use of this source code is governed by a BSD-style | 4 // Use of this source code is governed by a BSD-style |
5 // license that can be found in the LICENSE file. | 5 // license that can be found in the LICENSE file. |
6 | 6 |
7 // Binary api computes the exported API of a set of Go packages. | 7 // Binary api computes the exported API of a set of Go packages. |
8 package main | 8 package main |
9 | 9 |
10 import ( | 10 import ( |
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 | 783 |
784 if _, dup := w.features[f]; dup { | 784 if _, dup := w.features[f]; dup { |
785 panic("duplicate feature inserted: " + f) | 785 panic("duplicate feature inserted: " + f) |
786 } | 786 } |
787 w.features[f] = true | 787 w.features[f] = true |
788 | 788 |
789 if *verbose { | 789 if *verbose { |
790 log.Printf("feature: %s", f) | 790 log.Printf("feature: %s", f) |
791 } | 791 } |
792 } | 792 } |
LEFT | RIGHT |