codeflash-agent/languages/go/plugin/references/memory/handoff-template.md
m-ali-24 044b2f190a
[FEAT] golang agents (#11)
* go base

* missing javascript

---------

Co-authored-by: ali <--global>
2026-04-14 18:55:36 -05:00

855 B

Memory Handoff — Go

Domain

Memory / Allocations

Environment

  • Go version: {{version}}
  • Module: {{module_name}}
  • Benchmark command: go test -bench=. -benchmem -count=5 ./...
  • GOGC: default (100) | custom ({{value}})

Baseline

  • Profiled with: go test -memprofile
  • Top allocators (by bytes):
    1. {{func}} — {{MB}} MB ({{allocs}} allocs/op)
    2. ...
  • Escape count: {{N}} escapes to heap
  • GC: {{N}} cycles/sec, {{pct}}% CPU

Experiments

# Target Category Result B/op Before B/op After allocs Before allocs After Notes

Current State

  • Branch: codeflash/optimize
  • Last experiment: #{{N}}
  • Next target: {{func}} ({{MB}} MB, {{allocs}} allocs/op)

Discoveries

  • {{what worked, what didn't, dead ends}}