diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-12-24 14:05:02 +0100 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-12-24 14:05:02 +0100 |
| commit | 73c12bd85076cfc47f5d06f7d2c557d790b66b94 (patch) | |
| tree | 0dadf4509e820815264b01eeff75a07fe61b2d7a | |
| parent | 0c01cd65d519925b6e8553ae344a57da51ed0fd3 (diff) | |
Add some documentation
| -rw-r--r-- | README.md | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -21,5 +21,18 @@ ## web -- Use reflection add startup time to add metadata to logging -- Save aggregate + an event with time & actor (event streaming) +- [ ] Use reflection add startup time to add metadata to logging +- [ ] Save aggregate + an event with time & actor (event streaming) + +## kcore + +```go +handler.HandleFunc("GET /", func(w http.ResponseWriter, r *http.Request) { + kcore.RenderPage(r.Context(), pages.HomePage(), w) +}) +``` + +```go +block, err := aes.NewCipher(secret) +kcore.Expect(err, "error creating AES cipher") +``` |
