mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 06:00:25 +03:00
hugolib: Use named keys in composite literals
Make `go vet` great again
This commit is contained in:
parent
c5d072990a
commit
715d4425ad
5 changed files with 107 additions and 100 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue