Skip to content

Commit 94b3d69

Browse files
author
Moussa Ouattara
committed
update
1 parent ba5f437 commit 94b3d69

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

main.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
package main
22

3-
import "fmt"
3+
import (
4+
"github.com/gin-gonic/gin"
5+
"net/http"
6+
)
47

58
func helloworld() string {
69
return "Hello World!!"
710
}
811

912
func main() {
10-
fmt.Println(helloworld())
13+
r := gin.Default()
14+
15+
r.GET("/", func(c *gin.Context) {
16+
c.String(http.StatusOK, helloworld())
17+
})
18+
19+
r.Run()
1120
}

0 commit comments

Comments
 (0)