From 97de2fd06cf08df90d560b2d243d05b1a85d01c1 Mon Sep 17 00:00:00 2001 From: Arnas Udovic Date: Sun, 12 Jan 2025 00:18:49 +0200 Subject: [PATCH] export AppCallback --- tree.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tree.go b/tree.go index 6d94874..6e03c12 100644 --- a/tree.go +++ b/tree.go @@ -24,10 +24,10 @@ type Config struct { AttachmentDirName string CustomMeta map[string]func() string Excludes []string - Apps map[string]appCallback + Apps map[string]AppCallback } -type appCallback func(dir string, content string, info os.FileInfo) (string, error) +type AppCallback func(dir string, content string, info os.FileInfo) (string, error) type File struct { Id string @@ -150,7 +150,7 @@ func NewConfig( attachmentDirName string, customMeta map[string]func() string, excludes []string, - apps map[string]appCallback, + apps map[string]AppCallback, ) Config { return Config{ ReadableFormats: readableFormats, @@ -262,7 +262,7 @@ func moveAttachments(dir string, config Config) (map[string]string, error) { return attachmentRegistry, err } -func applyApp(app appCallback, dir string, config Config) error { +func applyApp(app AppCallback, dir string, config Config) error { err := filepath.Walk(dir, func(fullPath string, info os.FileInfo, e error) error { if e != nil { return e