This commit is contained in:
jiangyong27 2024-07-24 20:17:21 +08:00
parent 8ff96d7255
commit dd5a9ae0b0
1 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import (
"fmt"
"reflect"
"regexp"
"sort"
"strconv"
"strings"
)
@ -127,3 +128,9 @@ func HtmlStrip(src string) string {
src = strings.ReplaceAll(src, "&nbsp", "")
return strings.TrimSpace(src)
}
func Reverse(s interface{}) {
sort.SliceStable(s, func(i, j int) bool {
return true
})
}