1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 19:43:49 +08:00

add comments

This commit is contained in:
Mrs4s 2021-11-27 16:01:09 +08:00
parent 3e9920b31b
commit bf06f50a83
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7
2 changed files with 1 additions and 5 deletions

View File

@ -204,8 +204,3 @@ func convertChannelFeedInfo(f *topic.Feed) global.MSG {
func fU64(v uint64) string { func fU64(v uint64) string {
return strconv.FormatUint(v, 10) return strconv.FormatUint(v, 10)
} }
func sU64(v string) uint64 {
r, _ := strconv.ParseUint(v, 10, 64)
return r
}

View File

@ -5,6 +5,7 @@ import (
"github.com/Mrs4s/go-cqhttp/global" "github.com/Mrs4s/go-cqhttp/global"
) )
// FeedContentsToArrayMessage 将话题频道帖子内容转换为 Array Message
func FeedContentsToArrayMessage(contents []topic.IFeedRichContentElement) []global.MSG { func FeedContentsToArrayMessage(contents []topic.IFeedRichContentElement) []global.MSG {
r := make([]global.MSG, 0, len(contents)) r := make([]global.MSG, 0, len(contents))
for _, e := range contents { for _, e := range contents {