about summary refs log blame commit diff stats
path: root/commands/new-account.go
blob: 8d2fef51e4e5d09d3aa6129d64cde0106578ebdd (plain) (tree)
="w"> { parts := strings.Split(e, "\t") statusslice := strings.Split(parts[3], " ") for _, v := range statusslice { if v == tag { statuses[k] = v break } } } return statuses } // SortByTime returns a string slice of the statuses sorted by time func (sm StatusMapSlice) SortByTime() []string { var tagmap StatusMap var times TimeSlice var statuses []string for _, e := range sm { for k, v := range e { tagmap[k] = v } } for k := range tagmap { times = append(times, k) } sort.Sort(times) for _, e := range times { statuses = append(statuses, tagmap[e]) } return statuses } // GetStatuses returns the string slice containing a user's statuses func (index UserIndex) GetStatuses(url string) StatusMap { return index[url].status }