Left: | ||
Right: |
LEFT | RIGHT |
---|---|
(no file at all) | |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 package expressions | 5 package expressions |
6 | 6 |
7 type T struct { | 7 type T struct { |
8 x, y, z int | 8 x, y, z int |
9 } | 9 } |
10 | 10 |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
612 c | 612 c |
613 _ = a.b[0:].c | 613 _ = a.b[0:].c |
614 _ = a. | 614 _ = a. |
615 b[0:]. | 615 b[0:]. |
616 c | 616 c |
617 _ = a.b.(T).c | 617 _ = a.b.(T).c |
618 _ = a. | 618 _ = a. |
619 b.(T). | 619 b.(T). |
620 c | 620 c |
621 } | 621 } |
622 | |
623 | |
624 // Don't introduce extra newlines in strangely formatted expression lists. | |
625 func f() { | |
626 // os.Open parameters should remain on two lines | |
627 if writer, err = os.Open(outfile, s.O_WRONLY|os.O_CREATE| | |
628 os.O_TRUNC,0666); err != nil { | |
629 log.Fatal(err) | |
630 } | |
631 } | |
LEFT | RIGHT |