You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
339 B

package main
import (
"strings"
"github.com/dghubble/go-twitter/twitter"
)
func analyzeUserInteractions(tweets []twitter.Tweet, words map[string]int) map[string]int {
var userInteractions = make(map[string]int)
for v, k := range words {
if strings.Contains(v, "@") {
userInteractions[v] = k
}
}
return (userInteractions)
}