common

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfoDirEntry

type FileInfoDirEntry struct {
	fs.FileInfo // 嵌入的 fs.FileInfo 接口
}

FileInfoDirEntry 提供了一个从 os.FileInfo 到 fs.DirEntry 的适配器

func (FileInfoDirEntry) Info

func (d FileInfoDirEntry) Info() (fs.FileInfo, error)

Info 返回文件信息,实现 fs.DirEntry 接口的 Info 方法 返回:

  • fs.FileInfo 文件信息
  • error 错误信息,如果有

func (FileInfoDirEntry) Type

func (d FileInfoDirEntry) Type() fs.FileMode

Type 返回文件模式类型,实现 fs.DirEntry 接口的 Type 方法 返回:

  • fs.FileMode 文件模式类型

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL