Skip to content

Commit da52b0e

Browse files
author
Sabbir Ahmed
authored
Merge pull request #1061 from raihaninfo/golang
Added Golang interface example
2 parents bca860d + a237c97 commit da52b0e

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

data/gin-gonic.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@
5050
"items": [{
5151
"definition": "জিন রাউটার ইনিশিয়ালাইজেশন",
5252
"code": "router := gin.Default()"
53+
},{
54+
"definition":"জিন রাউটার ইমপ্লিমেন্টেশন",
55+
"code": "router.GET(\"/\", func(c *gin.Context) {\n\t// এখানে কোড লিখুন\n})"
5356
}]
5457
},
5558
{

data/golang.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,19 @@
298298
},
299299
{
300300
"code": "fmt.Println(aDoctor)"
301+
},
302+
{
303+
"definition": "বেনামী স্ট্রাক্ট(Anonymous structs)",
304+
"code":"point := struct {\n\tX, Y int\n}{1, 2}"
305+
}
306+
307+
]
308+
},
309+
{
310+
"title": "ইন্টারফেস উদাহরণ",
311+
"items":[
312+
{
313+
"code": "type Shape interface {\n Area() float64\n Perimeter() float64\n}"
301314
}
302315
]
303316
},

0 commit comments

Comments
 (0)