mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
hugolib: Use named keys in composite literals
Make `go vet` great again
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
c5d072990a
commit
715d4425ad
@@ -54,8 +54,8 @@ func (t *InMemoryAliasTarget) Publish(label string, permalink template.HTML) (er
|
||||
}
|
||||
|
||||
var urlFakeSource = []source.ByteSource{
|
||||
{filepath.FromSlash("content/blue/doc1.md"), []byte(slugDoc1)},
|
||||
{filepath.FromSlash("content/blue/doc2.md"), []byte(slugDoc2)},
|
||||
{Name: filepath.FromSlash("content/blue/doc1.md"), Content: []byte(slugDoc1)},
|
||||
{Name: filepath.FromSlash("content/blue/doc2.md"), Content: []byte(slugDoc2)},
|
||||
}
|
||||
|
||||
// Issue #1105
|
||||
|
Reference in New Issue
Block a user