From 265880c2cf09cf893ff17f7e44e3fadb254aa0d0 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Sun, 28 Oct 2018 12:01:02 -0400 Subject: [PATCH] Add tags package documentation --- tags/tags.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tags/tags.go b/tags/tags.go index b980eb5..3a3c90d 100644 --- a/tags/tags.go +++ b/tags/tags.go @@ -1,9 +1,12 @@ +// Package tags supports operations around hashtags in plain text content package tags import ( "github.com/kylemcc/twitter-text-go/extract" ) +// Extract finds all hashtags in the given string and returns a de-duplicated +// list of them. func Extract(body string) []string { matches := extract.ExtractHashtags(body) tags := map[string]bool{}