Back to Wails

Gin Service Example

v3/examples/gin-service/README.md

2.13.0609 B
Original Source

Gin Service Example

This example demonstrates how to use the Gin web framework in a Wails Service.

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

Documentation

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