Skip to content

Some simple router examples and practical examples with the gin framework and the go programming language

Notifications You must be signed in to change notification settings

ProdByGodfather/gin-sample-routers-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d7b0537 · Nov 21, 2023

History

6 Commits
Nov 19, 2023
Nov 19, 2023
Nov 21, 2023
Nov 19, 2023
Nov 19, 2023
Nov 19, 2023

Repository files navigation

Sample Gin Framework

Some simple router examples and practical examples with the gin framework and the go programming language.

this router send you a json data. To see routers JSON

Examples of routers:

  • router.GET("/hello")
  • router.GET("/hello/:name")
  • router.GET("/data")
  • router.GET("/form")
  • router.POST("/form")

For run the project:

  1. first install go programming language from this url.

  2. go to project directory and write in terminal:

        go run main.go
    
  3. go to your browser and open this url: http://localhost:8080/

    you can see urls in top

About

Some simple router examples and practical examples with the gin framework and the go programming language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published