models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {

	// 文件的路径
	Path string

	// 文件系统信息
	Info fs.FileInfo

	// 在Maven仓库查找到的信息
	Version *response.Version
}

File 表示一个文件

func (*File) ExistsMaven

func (x *File) ExistsMaven() bool

ExistsMaven 是否在Maven中央仓库存在

func (*File) IsDirectory

func (x *File) IsDirectory() bool

IsDirectory 此文件是否是目录

func (*File) IsJarFile

func (x *File) IsJarFile() bool

IsJarFile 是否是Jar文件

type FileHandler

type FileHandler func(ctx context.Context, file *File) error

FileHandler 单个文件应该如何处理

Jump to

Keyboard shortcuts

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