Skip to content

Commit

Permalink
Merge pull request #1061 from raihaninfo/golang
Browse files Browse the repository at this point in the history
Added Golang interface example
  • Loading branch information
sabbirshawon committed Oct 25, 2023
2 parents bca860d + a237c97 commit da52b0e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/gin-gonic.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
"items": [{
"definition": "জিন রাউটার ইনিশিয়ালাইজেশন",
"code": "router := gin.Default()"
},{
"definition":"জিন রাউটার ইমপ্লিমেন্টেশন",
"code": "router.GET(\"/\", func(c *gin.Context) {\n\t// এখানে কোড লিখুন\n})"
}]
},
{
Expand Down
13 changes: 13 additions & 0 deletions data/golang.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,19 @@
},
{
"code": "fmt.Println(aDoctor)"
},
{
"definition": "বেনামী স্ট্রাক্ট(Anonymous structs)",
"code":"point := struct {\n\tX, Y int\n}{1, 2}"
}

]
},
{
"title": "ইন্টারফেস উদাহরণ",
"items":[
{
"code": "type Shape interface {\n Area() float64\n Perimeter() float64\n}"
}
]
},
Expand Down

0 comments on commit da52b0e

Please sign in to comment.