mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
os: deduplicate File definition
Fixes #16993. Change-Id: Ibe406f97d2a49acae94531d969c56dbac8ce53b2 Reviewed-on: https://go-review.googlesource.com/28511 Run-TryBot: Minux Ma <minux@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
269ff8e603
commit
5514332ed9
4 changed files with 5 additions and 15 deletions
|
|
@ -19,11 +19,6 @@ func rename(oldname, newname string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// File represents an open file descriptor.
|
||||
type File struct {
|
||||
*file
|
||||
}
|
||||
|
||||
// file is the real representation of *File.
|
||||
// The extra level of indirection ensures that no clients of os
|
||||
// can overwrite this data, which could cause the finalizer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue