]> Cypherpunks repositories - gostls13.git/commit
cmd/gofmt, go/format: refactor common pieces into internal/format
authorSebastien Binet <seb.binet@gmail.com>
Wed, 4 Mar 2015 13:20:32 +0000 (14:20 +0100)
committerRobert Griesemer <gri@golang.org>
Wed, 1 Apr 2015 17:35:26 +0000 (17:35 +0000)
commit9a3ee2d217ef573426b57da1e4309900db140e76
tree74979144af3736720725cf7e17537731c8e5335a
parentb09925b31d3012345b1926e6f8133551fa050fe2
cmd/gofmt, go/format: refactor common pieces into internal/format

cmd/gofmt and go/format had 3 functions (parse, format and isSpace)
that had to be kept in-sync.

This CL extracts these 3 functions and refactors them into a new
internal/format package.
This CL is just code reorganization with no behavior nor semantic
change.

Change-Id: I593f24e9d3cadbbd9559a67e3b1d2ff190b4fd90
Reviewed-on: https://go-review.googlesource.com/6760
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/gofmt/gofmt.go
src/cmd/gofmt/long_test.go
src/go/format/format.go
src/internal/format/format.go [new file with mode: 0644]