We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 316410b commit 265880cCopy full SHA for 265880c
tags/tags.go
@@ -1,9 +1,12 @@
1
+// Package tags supports operations around hashtags in plain text content
2
package tags
3
4
import (
5
"github.com/kylemcc/twitter-text-go/extract"
6
)
7
8
+// Extract finds all hashtags in the given string and returns a de-duplicated
9
+// list of them.
10
func Extract(body string) []string {
11
matches := extract.ExtractHashtags(body)
12
tags := map[string]bool{}
0 commit comments