Sign in
go
/
talks
/
a07c284bcf333dc17a1489fd441e8fccf1e01c2a
/
.
/
content
/
2012
/
tutorial
/
main.go
blob: 10fcad6b533b5b0bc600a38bf80dc046007d7e4f [
file
] [
log
] [
blame
]
// +build ignore,OMIT
package main
import (
"fmt"
"github.com/nf/reddit"
// HL
"log"
)
func main() {
items, err := reddit.Get("golang")
// HL
if err != nil {
log.Fatal(err)
}
for _, item := range items {
fmt.Println(item)
}
}