docs(web): fix non-compiling doc examples; bump to v1.1.0 (#1)

Coordinated framework release. Documentation-only code changes plus the shared
version bump (folds the never-tagged 1.0.1 contracts pin into 1.1.0).

- mw.Recover() -> mw.Recover(logger): web/mw/doc.go, web/server/doc.go,
  web/server/server.go.
- health.NewHandler(...) -> ....ServeHTTP (chi Get takes HandlerFunc): web/server/doc.go,
  web/doc.go, web/health/doc.go.
- go.mod: contracts, core -> v1.1.0 (via go get + go mod tidy).

Verified by compiling the example patterns against the real API. Badge -> v1.1.0.

Reviewed-on: #1
Co-authored-by: Rene Nochebuena Guerrero <rene@nochebuena.dev>
Co-committed-by: Rene Nochebuena Guerrero <rene@nochebuena.dev>
This commit was merged in pull request #1.
This commit is contained in:
2026-08-07 19:07:57 -06:00
committed by NOCHEBUENADEV
parent c4ef1948f6
commit f0ff3c38ed
9 changed files with 29 additions and 18 deletions
+2 -2
View File
@@ -12,12 +12,12 @@
//
// # Example
//
// srv.Get("/health", health.NewHandler(logger, db, cache, storage))
// srv.Get("/health", health.NewHandler(logger, db, cache, storage).ServeHTTP)
//
// Or with custom timeout:
//
// srv.Get("/health", health.NewHandlerWithConfig(logger,
// health.Config{CheckTimeout: 3 * time.Second},
// db, cache,
// ))
// ).ServeHTTP)
package health