mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
28 lines
630 B
Markdown
28 lines
630 B
Markdown
---
|
|
title: Gin
|
|
description: A Gin server
|
|
tags:
|
|
- gin
|
|
- golang
|
|
---
|
|
|
|
# Gin Example
|
|
|
|
This example starts an [Gin](https://gin-gonic.com/) server.
|
|
|
|
[](https://railway.app/new?template=https%3A%2F%2Fgithub.com%2Frailwayapp%2Fexamples%2Ftree%2Fmaster%2Fexamples%2Fgin)
|
|
|
|
## ✨ Features
|
|
|
|
- Gin
|
|
- Go
|
|
|
|
## 💁♀️ How to use
|
|
|
|
- Connect to your Railway project `railway link`
|
|
- Start the development server `railway run go run main.go`
|
|
|
|
## 📝 Notes
|
|
|
|
The server started simply returns a `message: Hello world!` payload in JSON. The server code is located in the `main.go` file.
|