grim/youtrack-import
Clone
Summary
Browse
Changes
Graph
Use the built in mime stuff to figure out the content type for attachments
2020-01-14, Gary Kramlich
4763018b25c8
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
)
})
}