func generateKey(ownerUserName string, ttype models.TimelineType, date time.Time) string {
	isoDate := util.Iso8601(date)
	return fmt.Sprintf("%s_%d_%s", ownerUserName, ttype, isoDate[0:10])
}
Beispiel #2
0
func (m *Msg) GetId() string {
	return fmt.Sprintf("%s_%v", m.Sender, util.Iso8601(m.Created))
}