Commit Graph

19 Commits

Author SHA1 Message Date
386d6b548b initial implementation
see TODO.md for problem definition
2026-05-14 16:36:12 +00:00
81f5a49cea result: Errw with caller info
- wrap existing errors with context + file:line, newline-separated for readable error chains
- dual mode philosophy: panics + if err != nil
- unify Expect for goexit and panic cases
2026-05-06 23:36:14 +00:00
7748ebfd89 delete Greeter interface
make it canonic Go
2026-05-05 00:28:51 +00:00
390ffa19a4 result.Errf 2026-05-05 00:12:54 +00:00
ea38cf5a5a better tests 2026-05-04 22:45:33 +00:00
c737e7d6be slides 2026-05-04 19:15:11 +00:00
e204e43e6e use panics as a default error reporting mechanism
- runtime.Goexit() has too much performance overhead, and should be used only under special conditions
- introduce build tags
2026-04-23 21:05:18 +00:00
974fed55d3 happy path perf optimization
move goroutineID() inside the defer, guarded by !finished. It's safe — Goexit runs defers in the same goroutine, so the ID is stable.
2026-04-23 20:02:34 +00:00
9599b8c0a3 performance benchmark
+ Switching debug.Stack() → runtime.Callers() saved ~900 ns and ~1 KB per error — the formatted string is gone, just raw program counters stored
2026-04-23 19:50:02 +00:00
e2b7e94847 runtime.Goexit() instead of panic
- usage policy: application code vs pkg
2026-04-23 18:48:31 +00:00
09d7c98069 install tools on devcontainer creation
this will stop vscode's Go extension of installing `golangci-lint@latest`
2026-04-09 07:03:21 +00:00
b46a998aac GOPRIVATE=gitea.djmil.dev 2026-04-08 21:02:51 +00:00
dbd513f7b4 pkg/result: Expectf() 2026-04-08 20:20:39 +00:00
7e2b50faf0 update .vscode settings 2026-04-08 19:31:36 +00:00
9ea29d3ba4 rename.sh: keep gitea.djmil.dev/go/template/pkg/result 2026-04-08 19:14:41 +00:00
bc637b3a77 enforce result oriented coding style for Claude 2026-04-08 18:37:44 +00:00
4b8a092201 add go doc as tools 2026-04-08 18:28:06 +00:00
456fa36854 rename.sh git push --force to publish repo 2026-04-07 20:43:04 +00:00
8e7100a427 init: go/template v0.1.1 2026-04-07 20:32:27 +00:00