file

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Extensions = map[string]bool{
	".jpg":  true,
	".jpeg": true,
	".png":  true,
	".gif":  true,
}

Functions

func ExtractFileExtNum added in v1.2.7

func ExtractFileExtNum(s string, ext string) (int, error)

func ExtractFileNum

func ExtractFileNum(s string) (int, error)

func ExtractFolderNum

func ExtractFolderNum(s string) (int, error)

func FormatSize

func FormatSize(bytes int64) string

func HasMismatch

func HasMismatch(folder string, file string) bool

func HasThumbnail

func HasThumbnail(s string) bool

func IsConsecutive added in v1.2.7

func IsConsecutive(arr []int) bool

Types

type Image

type Image struct {
	Format string
	Width  int
	Height int
}

func ParseImage

func ParseImage(path string) (Image, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳