teambition upload (<= 20 MB)

This commit is contained in:
微凉
2022-01-23 14:03:04 +08:00
parent 2a9598f4c6
commit df513b7dc0
5 changed files with 202 additions and 21 deletions

View File

@ -0,0 +1,18 @@
package teambition
import "strings"
func GetBetweenStr(str, start, end string) string {
n := strings.Index(str, start)
if n == -1 {
return ""
}
n = n + len(start)
str = string([]byte(str)[n:])
m := strings.Index(str, end)
if m == -1 {
return ""
}
str = string([]byte(str)[:m])
return str
}