Skip to content

vinodnextcoder/golang-simple-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Writing a basic HTTP server is easy using Gin package

To run http server

cd simple-http-server

for gin

git clone https://github.com/vinodnextcoder/golang-simple-http-server.git
 you go any dorectory install package and run code

cd golang-simple-http-server/gin-web-app

Install Gin:
go get github.com/gin-gonic/gin

You can run your Gin web application by executing the main.go file:

go run main.go

to call api endpoint in postman



for folder gin-web-app
http://localhost:3001

http://localhost:3001/user/testuser

http://localhost:3001/contact


You can go to swagger doc

http://localhost:3001/swagger/index.html

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy