From b15e175fa7bd395a38de0fb23a0a92a45605587b Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Wed, 22 Nov 2017 11:54:47 +0900 Subject: [PATCH] Make default capacity 0 --- file_checker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file_checker.go b/file_checker.go index bcd9cea..5ff3c09 100644 --- a/file_checker.go +++ b/file_checker.go @@ -91,7 +91,7 @@ func parseFile(f string) (*html.Node, error) { func (c fileChecker) extractURLs(n *html.Node) ([]string, error) { us := make(map[string]bool) - ns := make([]*html.Node, 0, 1024) + ns := []*html.Node{} ns = append(ns, n) addURL := func(u string) error {