mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-16 07:35:51 +01:00
* 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> |
||
|---|---|---|
| .. | ||
| static | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| README.md | ||
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.