add diange source command & fix bilibili video

This commit is contained in:
Aynakeya
2022-07-03 13:54:01 -07:00
parent dc3ab46ad0
commit dfce89f96e
8 changed files with 128 additions and 22 deletions

View File

@@ -38,3 +38,9 @@ func StringToInt(s string) int {
i, _ := strconv.Atoi(s)
return i
}
func StringSliceCopy(src []string) []string {
x := make([]string, len(src))
copy(x, src)
return x
}