This commit is contained in:
sm
2016-07-28 20:13:20 -07:00
commit eea0aee587
5 changed files with 180 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package main
import (
"fmt"
"os"
"mcquay.me/spider"
)
const usage = "lnks <url>"
func main() {
if len(os.Args) < 2 {
fmt.Fprintf(os.Stderr, "%s\n", usage)
os.Exit(1)
}
for _, l := range spider.URLs(os.Args[1]) {
fmt.Println(l)
}
}