16 lines
269 B
Go
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
|
|
}
|