Skip to content

Fix undefined echo.Map in homepage Hello World example - #435

Merged
aldas merged 1 commit into
labstack:masterfrom
wakqasahmed:fix/homepage-hello-world-echo-map
Aug 17, 2026
Merged

Fix undefined echo.Map in homepage Hello World example#435
aldas merged 1 commit into
labstack:masterfrom
wakqasahmed:fix/homepage-hello-world-echo-map

Conversation

@wakqasahmed

Copy link
Copy Markdown
Contributor

Summary

The homepage Hello World example (site/src/components/HomeHero.astro) used echo.Map{"message": "Hello, World!"}, but echo.Map does not exist as a type in Echo v5. Copying the homepage example as-is fails to compile.

This replaces it with a plain map[string]string{"message": "Hello, World!"}, matching the pattern already used in the v5 Quickstart docs.

Why this PR targets echox instead of echo

The issue was filed on labstack/echo (labstack/echo#3065) because that's the natural place to report a docs/website bug, but the homepage/website source actually lives in this repo (labstack/echox). This PR fixes the bug where the code actually lives.

Fixes labstack/echo#3065

Test plan

  • npm ci && npx astro build in site/ completes successfully with no errors
  • Confirmed echo.Map no longer appears anywhere in the built output
  • Confirmed the Echo v5 Context.JSON(code int, i any) signature accepts map[string]string, so the example now compiles as advertised

@aldas
aldas merged commit 68ff871 into labstack:master Aug 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Homepage Hello World example uses undefined echo.Map with Echo v5

2 participants