Skip to content

Commit 265880c

Browse files
committed
Add tags package documentation
1 parent 316410b commit 265880c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tags/tags.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
// Package tags supports operations around hashtags in plain text content
12
package tags
23

34
import (
45
"github.com/kylemcc/twitter-text-go/extract"
56
)
67

8+
// Extract finds all hashtags in the given string and returns a de-duplicated
9+
// list of them.
710
func Extract(body string) []string {
811
matches := extract.ExtractHashtags(body)
912
tags := map[string]bool{}

0 commit comments

Comments
 (0)