mirror of
https://github.com/golang/go
synced 2024-11-18 13:04:46 -07:00
The Go programming language
5a22c00969
When a file is not found, it's common to return an error that can be detected with os.IsNotExist helper. It's possible to use os.PathError type to satisfy that requirement while still providing the path information in the error. Add a test that files that are not found return a non-nil error, and that the error satisfies os.IsNotFound. Change-Id: I5f1a26b18f2556af822ede73306541e8575ede28 Reviewed-on: https://go-review.googlesource.com/19503 Reviewed-by: Andrew Gerrand <adg@golang.org> |
||
---|---|---|
benchmark/parse | ||
blog | ||
cmd | ||
container/intsets | ||
cover | ||
go | ||
godoc | ||
imports | ||
oracle | ||
playground | ||
present | ||
refactor | ||
.gitattributes | ||
.gitignore | ||
AUTHORS | ||
codereview.cfg | ||
CONTRIBUTING.md | ||
CONTRIBUTORS | ||
LICENSE | ||
PATENTS | ||
README |
This subrepository holds the source for various packages and tools that support the Go programming language. Some of the tools, godoc and vet for example, are included in binary Go distributions. Others, including the Go oracle and the test coverage tool, can be fetched with "go get". Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs. To submit changes to this repository, see http://golang.org/doc/contribute.html.