mirror of
https://github.com/miniflux/v2.git
synced 2025-09-30 19:22:11 +00:00
perf: convert some slices to array
This commit is contained in:
parent
afe80e6bae
commit
fa361ab1ce
3 changed files with 6 additions and 6 deletions
|
@ -12,14 +12,14 @@ import (
|
|||
)
|
||||
|
||||
// RFC822, RFC850, and RFC1123 formats should be applied only to local times.
|
||||
var dateFormatsLocalTimesOnly = []string{
|
||||
var dateFormatsLocalTimesOnly = [...]string{
|
||||
time.RFC822, // RSS
|
||||
time.RFC850,
|
||||
time.RFC1123,
|
||||
}
|
||||
|
||||
// dateFormats taken from github.com/mjibson/goread
|
||||
var dateFormats = []string{
|
||||
var dateFormats = [...]string{
|
||||
time.RFC822Z, // RSS
|
||||
time.RFC3339, // Atom
|
||||
time.UnixDate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue