localimage

package
v0.0.0-...-ff1ea2f Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

README

介绍

  • 插件名:读取本地图片
  • 权限:所有好友和群聊
  • 指令:
    • 列出图片目录
    • 来点[目录名称]图片
    • 来[数量]张[目录名称]图片
    • 来点[搜索词]图片
    • 来[数量]张[搜索词]图片
    • [目录名称]
    • [目录名称] [数量]
  • 说明:
    • 本插件目的为提供一个通用的读取本地图片的插件
    • 图片放到本插件对应目录下,即可以通过上面指令读取
    • 目录规范为三层:
      • 第一层,图片分类l1
      • 第二层,图片说明l2
      • 第三层,图片明细l3

预览:

img

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exist

func Exist(folderPath string) bool

func GeneratePdfFile

func GeneratePdfFile(filePath string, imagePaths []string) error

func GetFile

func GetFile(folderPath string) ([]os.DirEntry, error)

func GetStorageFolder

func GetStorageFolder() string

func GetSubFolder

func GetSubFolder(folderPath string) ([]os.DirEntry, error)

func IsImageFile

func IsImageFile(dirEntry os.DirEntry) bool

func MakeDir

func MakeDir(folderPath string) bool

func ReadDir

func ReadDir(folderPath string, filters ...func(dirEntry os.DirEntry) bool) ([]os.DirEntry, error)

func WriteFile

func WriteFile(filePath, content string)

Types

type DirEntryVo

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

Jump to

Keyboard shortcuts

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