From 32fbadfff7205f94a5089ec8ff2fc1cef30d325d Mon Sep 17 00:00:00 2001 From: Keuin Date: Mon, 12 Sep 2022 02:59:36 +0800 Subject: Feature: use alternative file extension name when the downloading is not completed. --- common/filename.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 common/filename.go (limited to 'common') diff --git a/common/filename.go b/common/filename.go new file mode 100644 index 0000000..aedd377 --- /dev/null +++ b/common/filename.go @@ -0,0 +1,7 @@ +package common + +import "fmt" + +func CombineFileName(base string, ext string) string { + return fmt.Sprintf("%s.%s", base, ext) +} -- cgit v1.2.3