// GetUserEvents get events from users
GetUserEvents get events from users
// GetUserEvents get events from users
func (es *Events) GetUserEvents(username string) *Events {
	var events []Event
	for _, event := range es.Events {
		if username == event.Username {
			events = append(events, event)
		}
	}
	return &Events{Events:events}
}
func ( es * Events ) GetUserEvents ( username string ) * Events { var events [ ] Event for _ , event := range es . Events { if username == event . Username { events = append ( events , event ) } } return & Events { Events : events } }
GetUserEvents get events from users
GetUserEvents get events from users