私が読んでいた:http://golang.org/doc/effective_go.html#errorsGoでエラー(* os.PathError)とは何ですか?
を私はそのような行を見つけました:このコンテキストでerr.(*os.PathError)
:
for try := 0; try < 2; try++ {
file, err = os.Create(filename)
if err == nil {
return
}
if e, ok := err.(*os.PathError); ok && e.Err == syscall.ENOSPC {
deleteTempFiles() // Recover some space.
continue
}
return }
正確ゴーでerr.(*os.PathError)
は何? docsから