small pixel drawing of a pufferfish vore

letstryit
Jes Olson j3s@c3f.net
Sat, 03 Aug 2024 07:21:04 -0400
commit

6f008fb4f4a31573c603b1ed0ca0aadee53f87bf

parent

db1b5b47db01ca77787934d3859406b6feb0f9bb

1 files changed, 9 insertions(+), 1 deletions(-)

jump to
M reaper/reaper.goreaper/reaper.go

@@ -97,7 +97,15 @@ err := f.Update()

if err != nil { r.handleFeedFetchFailure(f.UpdateURL, err) } - fmt.Printf("size of %s: %d bytes\n", f.UpdateURL, unsafe.Sizeof(f)) + fmt.Printf("examining %s (size %d) - items(%d):\n", f.UpdateURL, unsafe.Sizeof(f), len(f.Items)) + for _, c := range f.Categories { + fmt.Printf(" category %s: %d\n", c, unsafe.Sizeof(c)) + } + for _, c := range f.Items { + fmt.Printf(" item struct %s: %d\n", c.Title, unsafe.Sizeof(c)) + fmt.Printf(" item Title: %d\n", unsafe.Sizeof(c.Title)) + fmt.Printf(" item Summary: %d\n", unsafe.Sizeof(c.Summary)) + } } func (r *Reaper) handleFeedFetchFailure(url string, err error) {