Files
archived-starters/examples/gin/README.md
2021-09-24 09:28:08 -04:00

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.
[![Deploy on Railway](https://railway.app/button.svg)](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.