• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alexferl / zerohttp / 22770443666
94%

Build:
DEFAULT BRANCH: master
Ran 06 Mar 2026 03:41PM UTC
Jobs 1
Files 45
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Mar 2026 03:40PM UTC coverage: 92.759% (-0.7%) from 93.445%
22770443666

push

github

web-flow
refactor: convert all config from functional options to struct-based API (#34)

* refactor: convert all config from functional options to struct-based API

BREAKING CHANGE: Remove all `With*` functions in favor of direct struct configuration

- Server: `zh.New(config.Config{...})` instead of `zh.New(config.WithXxx(...))`
- Middleware: `middleware.CORS(config.CORSConfig{...})` instead of `middleware.CORS(config.WithCORSXxx(...))`
- Healthcheck: `healthcheck.New(app, healthcheck.Config{...})` with exported `DefaultConfig`
- Remove all `*Option` types and `With*` functions from config package
- Update all examples and documentation to use new API
- Add `config.Bool()` helper for `*bool` pointer fields

Signed-off-by: alexferl <me@alexferl.com>

* add config merging

Signed-off-by: alexferl <me@alexferl.com>

---------

Signed-off-by: alexferl <me@alexferl.com>

493 of 543 new or added lines in 25 files covered. (90.79%)

5 existing lines in 4 files now uncovered.

4368 of 4709 relevant lines covered (92.76%)

16.29 hits per line

Uncovered Changes

Lines Coverage ∆ File
50
85.03
-4.94% server.go

Coverage Regressions

Lines Coverage ∆ File
2
92.42
-0.58% sse.go
1
83.67
-0.11% middleware/circuit_breaker.go
1
99.2
-0.01% middleware/rate_limit.go
1
89.47
-0.11% middleware/timeout.go
Jobs
ID Job ID Ran Files Coverage
1 22770443666.1 06 Mar 2026 03:41PM UTC 45
92.76
GitHub Action Run
Source Files on build 22770443666
  • Tree
  • List 45
  • Changed 31
  • Source Changed 30
  • Coverage Changed 30
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22770443666
  • 6f7c8ebb on github
  • Prev Build on master (#22741691151)
  • Next Build on master (#22792904807)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc