wails/v3/examples/gin-routing
Andrey Pshenkin 561473d992
[V3] Refactor binding transport layer (#4702)
* custom transport initial

* transport codecs

* runtime set transport

* events transport

* clauded example

* bundled runtime

* wip: transport

* rework transports

* rework dialog responses

* cleanup

* cleanup

* improve error handling in HTTPTransport

* cleanup

* cleanup

* cleanup

* cleanup

* review changes

* review changes

* review changes

* review changes

* review changes

* review changes

* review changes

* move documentation to website docs

* update doc

* update changelog

* introduce JSClient method for transport for embedding JS part in transport

---------

Co-authored-by: Atterpac <Capretta.Michael@gmail.com>
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-12-07 22:19:12 +11:00
..
static Update docs + examples. 2025-03-11 21:06:57 +11:00
go.mod [V3] Refactor binding transport layer (#4702) 2025-12-07 22:19:12 +11:00
go.sum [V3] Refactor binding transport layer (#4702) 2025-12-07 22:19:12 +11:00
main.go Refactor Manager API to use singular naming convention (#4367) 2025-06-22 12:19:14 +10:00
README.md Update docs + examples. 2025-03-11 21:06:57 +11:00

Gin Routing Example

This example demonstrates how to use the Gin web framework as a router with Wails.

Overview

This example shows how to:

  • Set up Gin as the asset handler for a Wails application
  • Create a middleware that routes requests between Wails and Gin
  • Define API endpoints with Gin
  • Communicate between the Gin-served frontend and Wails backend
  • Implement custom Gin middleware

Running the Example

cd v3/examples/gin-routing
go mod tidy
go run .

Documentation

Please consult the Using Gin for Routing guide for a detailed explanation of the example.