init
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user