argos/analyzeUserInteractions.go
analyzeUserInteractions.goRaw
1package main
2
3import (
4 "strings"
5
6 "github.com/dghubble/go-twitter/twitter"
7)
8
9func analyzeUserInteractions(tweets []twitter.Tweet, words map[string]int) map[string]int {
10 var userInteractions = make(map[string]int)
11 for v, k := range words {
12 if strings.Contains(v, "@") {
13 userInteractions[v] = k
14 }
15 }
16 return (userInteractions)
17}