grim/youtrack-import

Use the built in mime stuff to figure out the content type for attachments
package youtrack
import (
"sort"
"time"
)
type Comment struct {
Author string
Text string
Created time.Time
Updated time.Time
Markdown bool
}
func sortComments(comments []Comment) {
sort.Slice(comments, func(i, j int) bool {
return comments[i].Created.Before(comments[j].Created)
})
}