hugolib: Use named keys in composite literals

Make `go vet` great again
This commit is contained in:
Cameron Moore 2016-08-19 06:22:19 -05:00 committed by Bjørn Erik Pedersen
parent c5d072990a
commit 715d4425ad
5 changed files with 107 additions and 100 deletions

View file

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