VS Code extension แสดง preview ของ Go HTML template (Fiber/Gin/Echo/Chi) — คลิก control บนฟอร์มเพื่อกระโดดไป Go handler / route / JS function / struct field / SQL
Struct fields by tag (NEW v0.5): กรณีใช้ c.BodyParser(&req) / c.ShouldBindJSON(&req) — extension จะเจอ field declaration ที่มี \json:"X"`` หรือ \form:"X"`` ตรงกัน
Routes: r.Post("/path", h.Handler) → resolve handler function declaration
Group chains (NEW v0.5): app.Group("/api") → api.Group("/users") → users.Get("/") รวมเป็น GET /api/users อัตโนมัติ
JS handlers: function/arrow function ที่ชื่อตรงกับ id ของ element หรือชื่อใน onclick="X()"
Chain via JS → fetch URL → Go route → handler ที่มี SQL
คลิก context menu icon บน editor title → GumGo: Preview Template
หรือ Ctrl+Shift+P → GumGo: Preview Template
หรือคลิกขวาที่ไฟล์ใน Explorer → Open With... → GumGo Preview
Build
cd D:\VsCodeExtension\GumGoPreview
npm install
npm run build # development
npm run package # production (minified)
npx @vscode/vsce package --no-dependencies --allow-missing-repository --skip-license
code --install-extension gumgo-preview-0.1.0.vsix