summaryrefslogtreecommitdiff
path: root/common/filename.go
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-09-12 02:59:36 +0800
committerKeuin <[email protected]>2022-09-12 02:59:36 +0800
commit32fbadfff7205f94a5089ec8ff2fc1cef30d325d (patch)
tree5a2b633a4e338402960cc3b4b1918ecb26f77e23 /common/filename.go
parent6bbb50f7a400767a8d2ff9b6982099b538203b83 (diff)
Feature: use alternative file extension name when the downloading is not completed.v0.2.0
Diffstat (limited to 'common/filename.go')
-rw-r--r--common/filename.go7
1 files changed, 7 insertions, 0 deletions
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)
+}