diff options
author | Keuin <[email protected]> | 2022-09-12 02:59:36 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-09-12 02:59:36 +0800 |
commit | 32fbadfff7205f94a5089ec8ff2fc1cef30d325d (patch) | |
tree | 5a2b633a4e338402960cc3b4b1918ecb26f77e23 /common/filename.go | |
parent | 6bbb50f7a400767a8d2ff9b6982099b538203b83 (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.go | 7 |
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) +} |