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

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