meta

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Path  string
	Meta  pb.Meta
	Date  time.Time
	Error error
}

Info 文件信息.

func NewInfoError

func NewInfoError(path string, err error) *Info

func (Info) Output

func (p Info) Output(writer io.Writer)

Output 输出.

func (Info) String

func (p Info) String() string

func (Info) Target

func (p Info) Target(format string) string

Target 根据格式生成目的目录.

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService() *Service

func (*Service) Info

func (p *Service) Info(path string) *Info

Info 文件目录信息获取.

func (*Service) MatchArchive

func (p *Service) MatchArchive(path string) *Info

func (*Service) MatchDir

func (p *Service) MatchDir(dir string) *Info

func (*Service) WalkDir

func (p *Service) WalkDir(dir string) *Info

Jump to

Keyboard shortcuts

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