16 lines
341 B
Go
16 lines
341 B
Go
package pretty
|
||
|
||
import (
|
||
"fmt"
|
||
)
|
||
|
||
// Print will pretty-print the sitemap. This is basically a stub for now,
|
||
// because it’s 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)
|
||
}
|
||
}
|