LEFT | RIGHT |
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 include ../../../Make.$(GOARCH) | 5 include ../../../Make.$(GOARCH) |
6 | 6 |
7 TARG=exp/vector | 7 TARG=exp/vector |
8 GOFILES=\ | 8 GOFILES=\ |
| 9 defs.go\ |
9 intvector.go\ | 10 intvector.go\ |
10 stringvector.go\ | 11 stringvector.go\ |
11 vector.go\ | 12 vector.go\ |
12 | 13 |
| 14 generate: vector.go vector_test.go |
| 15 < vector.go cat\ |
| 16 | gofmt -r='Vector -> IntVector'\ |
| 17 | gofmt -r='interface{} -> int'\ |
| 18 > intvector.go\ |
| 19 ········ |
| 20 < vector.go cat\ |
| 21 | gofmt -r='Vector -> StringVector'\ |
| 22 | gofmt -r='interface{} -> string'\ |
| 23 > stringvector.go\ |
| 24 ········ |
| 25 < vector_test.go cat\ |
| 26 | gofmt -r='Vector -> IntVector'\ |
| 27 | gofmt -r='zero -> intzero'\ |
| 28 | gofmt -r='elem2Value -> elem2IntValue'\ |
| 29 | gofmt -r='intf2Value -> intf2IntValue'\ |
| 30 | gofmt -r='int2Value -> int2IntValue'\ |
| 31 | gofmt -r='TestZeroLenExp -> TestIntZeroLenExp'\ |
| 32 | gofmt -r='TestResizeExp -> TestIntResizeExp'\ |
| 33 | gofmt -r='TestResize2Exp -> TestIntResize2Exp'\ |
| 34 | gofmt -r='checkZeroExp -> checkIntZeroExp'\ |
| 35 | gofmt -r='TestTrailingElementsExp -> TestIntTrailingElementsExp'\ |
| 36 | gofmt -r='TestAccessExp -> TestIntAccessExp'\ |
| 37 | gofmt -r='TestInsertDeleteClearExp -> TestIntInsertDeleteClearExp'\ |
| 38 | gofmt -r='verify_sliceExp -> verify_sliceIntExp'\ |
| 39 | gofmt -r='verify_patternExp -> verify_patternIntExp'\ |
| 40 | gofmt -r='make_vectorExp -> make_vectorIntExp'\ |
| 41 | gofmt -r='TestInsertVectorExp -> TestIntInsertVectorExp'\ |
| 42 | gofmt -r='TestDoExp -> TestIntDoExp'\ |
| 43 | gofmt -r='TestIterExp -> TestIntIterExp'\ |
| 44 | gofmt -r='TestVectorData -> TestIntVectorData'\ |
| 45 > intvector_test.go\ |
| 46 ········ |
| 47 < vector_test.go cat\ |
| 48 | gofmt -r='Vector -> StringVector'\ |
| 49 | gofmt -r='zero -> strzero'\ |
| 50 | gofmt -r='int2Value -> int2StrValue'\ |
| 51 | gofmt -r='intf2Value -> intf2StrValue'\ |
| 52 | gofmt -r='elem2Value -> elem2StrValue'\ |
| 53 | gofmt -r='TestZeroLenExp -> TestStrZeroLenExp'\ |
| 54 | gofmt -r='TestResizeExp -> TestStrResizeExp'\ |
| 55 | gofmt -r='TestResize2Exp -> TestStrResize2Exp'\ |
| 56 | gofmt -r='checkZeroExp -> checkStrZeroExp'\ |
| 57 | gofmt -r='TestTrailingElementsExp -> TestStrTrailingElementsExp'\ |
| 58 | gofmt -r='TestAccessExp -> TestStrAccessExp'\ |
| 59 | gofmt -r='TestInsertDeleteClearExp -> TestStrInsertDeleteClearExp'\ |
| 60 | gofmt -r='verify_sliceExp -> verify_sliceStrExp'\ |
| 61 | gofmt -r='verify_patternExp -> verify_patternStrExp'\ |
| 62 | gofmt -r='make_vectorExp -> make_vectorStrExp'\ |
| 63 | gofmt -r='TestInsertVectorExp -> TestStrInsertVectorExp'\ |
| 64 | gofmt -r='TestDoExp -> TestStrDoExp'\ |
| 65 | gofmt -r='TestIterExp -> TestStrIterExp'\ |
| 66 | gofmt -r='TestVectorData -> TestStrVectorData'\ |
| 67 > stringvector_test.go |
| 68 |
13 include ../../../Make.pkg | 69 include ../../../Make.pkg |
LEFT | RIGHT |