From fbb6b729e93e3e170f37d2221cb4e0002c7fd146 Mon Sep 17 00:00:00 2001 From: Kevin Neaton Date: Fri, 17 Jul 2020 23:59:13 -0400 Subject: [PATCH] chore: format test/main.go --- test/main.go | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/test/main.go b/test/main.go index 3c73cf4..fc32083 100644 --- a/test/main.go +++ b/test/main.go @@ -12,20 +12,20 @@ const templateFile = "../dir-index.html" // Copied from go-ipfs/core/corehttp/gateway_indexPage.go type listingTemplateData struct { - GatewayURL string - Listing []directoryItem - Size string - Path string + GatewayURL string + Listing []directoryItem + Size string + Path string Breadcrumbs []breadcrumb - BackLink string - Hash string + BackLink string + Hash string } type directoryItem struct { - Size string - Name string - Path string - Hash string + Size string + Name string + Path string + Hash string ShortHash string } @@ -38,16 +38,16 @@ var testPath = "/ipfs/QmFooBarQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7/a/b/c" var testData = listingTemplateData{ GatewayURL: "//localhost:3000", Listing: []directoryItem{{ - Size: "25 MiB", - Name: "short-film.mov", - Path: testPath + "/short-film.mov", - Hash: "QmQuxBarQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7", + Size: "25 MiB", + Name: "short-film.mov", + Path: testPath + "/short-film.mov", + Hash: "QmQuxBarQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7", ShortHash: "QmQu\u2026xDu7", }, { - Size: "1 KiB", - Name: "this-piece-of-papers-got-47-words-37-sentences-58-words-we-wanna-know.txt", - Path: testPath + "/this-piece-of-papers-got-47-words-37-sentences-58-words-we-wanna-know.txt", - Hash: "QmquXbaRQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7", + Size: "1 KiB", + Name: "this-piece-of-papers-got-47-words-37-sentences-58-words-we-wanna-know.txt", + Path: testPath + "/this-piece-of-papers-got-47-words-37-sentences-58-words-we-wanna-know.txt", + Hash: "QmquXbaRQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7", ShortHash: "Qmqu\u2026xDu7", }}, Size: "25 MiB", -- GitLab