io/fs.FileInfo.Name (method)
9 uses
io/fs (current package)
format.go#L18: name := info.Name()
fs.go#L152: Name() string // base name of the file
readdir.go#L67: return di.fileInfo.Name()
walk.go#L134: func (d *statDirEntry) Name() string { return d.info.Name() }
io/ioutil
ioutil.go#L79: sort.Slice(list, func(i, j int) bool { return list[i].Name() < list[j].Name() })
net/http
fs.go#L122: func (d fileInfoDirs) name(i int) string { return d[i].Name() }
fs.go#L680: serveContent(w, r, d.Name(), d.ModTime(), sizeFunc, f)
path/filepath
path.go#L544: func (d *statDirEntry) Name() string { return d.info.Name() }
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |