1
0
mirror of https://github.com/golang/go synced 2024-10-04 21:21:22 -06:00
go/src/cmd/gofmt
Sebastien Binet 9a3ee2d217 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>
2015-04-01 17:35:26 +00:00
..
testdata go/format, cmd/gofmt: fix issues with partial Go code with indent 2014-09-29 17:04:48 -07:00
doc.go gofmt/doc: gofmt -s output may not be backward compatible 2015-02-08 05:13:00 +00:00
gofmt_test.go cmd/gofmt: make test files self-describing 2014-08-21 17:25:13 -07:00
gofmt.go cmd/gofmt, go/format: refactor common pieces into internal/format 2015-04-01 17:35:26 +00:00
long_test.go cmd/gofmt, go/format: refactor common pieces into internal/format 2015-04-01 17:35:26 +00:00
rewrite.go all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
simplify.go gofmt: -s flag simplifies "for _ = range x" 2014-07-17 09:40:27 -07:00