1
0
Fork 0
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:
Julien Voisin 2025-09-08 21:11:18 +02:00 committed by GitHub
parent afe80e6bae
commit fa361ab1ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -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,