Tags: heebin2/go-lib
Tags
docs: add framework overview to README and Korean translation Add a top-of-README intro explaining go-lib as a Go framework for building a single product — write an api and a service and the container wires the rest. Add a full Korean translation under docs/README.ko.md and link it from the English README. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Remove recognition demo; make cmd/main todo-only Drop the recognition feature and its shared prompt overlay. The demo now wires only the todo feature (SQLite via pkg/db): cmd/main registers todo.NewService/NewApi, the aggregate config embeds just the config.Config bundle, and the per-phase YAML drops the recognition block. Tests and docs (README, CLAUDE.md, pkg/config doc) updated to the todo-only shape. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Build out library: config bundle, container, db, kafka, phase, http
Add the toolkit around the existing pkg/log:
- pkg/config: embeddable config bundle + Read/Valid/String helpers
- pkg/container: gontainer builder wiring services/apis/consumers and
enabled infra, running until signal
- pkg/db: driver-agnostic database/sql pool (app blank-imports its driver)
with Open/Close globals and Tx/ReadTx/WriteTx helpers
- pkg/kafka/{producer,consumer}: IBM/sarama producer and consumer group
- pkg/http/{client,server}: imroc/req client and gin server
- pkg/phase: local|dev|live deployment-phase enum
Unify each infra's process-global lifecycle to Open/Close. Demo in
cmd/ + internal/: recognition (api + Kafka consumer) and todo (SQLite
via pkg/db); Kafka disabled by default. CLAUDE.md documents how to build
an application with go-lib.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>