x

Programs, configuration and documentation that don't fit anywhere else
Log | Files | Refs | README | LICENSE

commit 49ca4a901102ed9fccd46eb810f2271299b4227b
parent d730aab7c92da74b395d43eb84a692c5e4c44abf
Author: Oliver Lowe <o@olowe.co>
Date:   Fri, 18 Jul 2025 13:09:03 +0700

hn: close entry content paragraph

Diffstat:
Msrc/hnatom/hnatom.go | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/hnatom/hnatom.go b/src/hnatom/hnatom.go @@ -67,6 +67,7 @@ func entryContent(item *Item) []byte { buf := bytes.NewBufferString(item.Text) if item.Text != "" { buf.WriteString("<p>") + defer buf.WriteString("</p>") } fmt.Fprintf(buf, "Score: %d<br>", item.Score) comments := fmt.Sprintf("https://news.ycombinator.com/item?id=%d", item.ID) @@ -89,10 +90,6 @@ func init() { } func main() { - item, err := Get(44597668) - fmt.Printf("%+v\n", item) - os.Exit(1) - top, err := Top() if err != nil { log.Println("get top items:", err)