]> Cypherpunks repositories - gostls13.git/commit
path/filepath: new signature for Walk
authorRob Pike <r@golang.org>
Wed, 14 Sep 2011 00:47:59 +0000 (17:47 -0700)
committerRob Pike <r@golang.org>
Wed, 14 Sep 2011 00:47:59 +0000 (17:47 -0700)
commit4e3b725cf06a3a2a5ddde8585f21c81d36c61c86
tree71ca99c74d589de4cf5d7370d87e46c45311a85e
parent4c6454aecf6cab5ad87616431a791343a91ef4b8
path/filepath: new signature for Walk
This one uses a closure than an interface, and is much simpler to use.
It also enables a called function to return an error and (possibly)
halt processing.

Fixes #2237.

R=golang-dev, gri, rsc, r, cw, n13m3y3r
CC=golang-dev
https://golang.org/cl/5014043
src/cmd/gofix/main.go
src/cmd/gofmt/gofmt.go
src/cmd/govet/govet.go
src/pkg/path/filepath/path.go
src/pkg/path/filepath/path_test.go