Sign in
go
/
website
/
5872eae16bd2c34bdcad5e876a6d5979a1f15956
/
.
/
_content
/
talks
/
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)
}
}