This commit is contained in:
2018-05-22 19:24:19 +02:00
commit 546188fb7d
5 changed files with 180 additions and 0 deletions

15
pretty/pretty.go Normal file
View File

@@ -0,0 +1,15 @@
package pretty
import (
"fmt"
)
// Print will pretty-print the sitemap. This is basically a stub for now,
// because its the least interesting part of the program. If we used a graph
// this would be more fun.
func Print(url string, links []string) {
fmt.Println(url, ":")
for _, link := range links {
fmt.Println("\t", link)
}
}