gosuki/parse.go

27 lines
429 B
Go

package main
import (
"regexp"
)
const (
RE_TAGS = `\B#\w+`
)
type ParserStats struct {
lastNodeCount int
lastURLCount int
currentNodeCount int
currentUrlCount int
}
func _s(value interface{}) string {
return string(value.([]byte))
}
func findTagsInTitle(title []byte) {
var regex = regexp.MustCompile(RE_TAGS)
tags := regex.FindAll(title, -1)
debugPrint("%s ---> found following tags: %s", title, tags)
}