Files
web_hgtv_server/web/service/srv_search/seo.go
T
rootandClaude Opus 5.5 7974a42301 Initial commit
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-23 11:07:42 +08:00

16 lines
269 B
Go

package srv_search
import (
"strings"
"videoweb/pub/pubdef"
)
func flattenSeoInfo(seo pubdef.SeoValue) (title, keywords, desc string) {
title = seo.Title
desc = seo.Description
if len(seo.Keyworld) > 0 {
keywords = strings.Join(seo.Keyworld, " ")
}
return
}