1
0
mirror of https://github.com/fumiama/deepinfra.git synced 2026-06-12 14:06:35 +08:00

feat: add custom

This commit is contained in:
源文雨
2025-02-14 16:29:37 +09:00
parent 507e407127
commit 12ba460588
6 changed files with 155 additions and 26 deletions

View File

@@ -7,6 +7,9 @@ const (
)
func CutLast(txt, sep string) string {
if sep == "" { // no need to cut
return txt
}
a := strings.LastIndex(txt, sep)
if a < 0 {
return ""