diff --git a/data/gin-gonic.json b/data/gin-gonic.json index 364e598e4..17cde61a1 100644 --- a/data/gin-gonic.json +++ b/data/gin-gonic.json @@ -50,6 +50,9 @@ "items": [{ "definition": "জিন রাউটার ইনিশিয়ালাইজেশন", "code": "router := gin.Default()" + },{ + "definition":"জিন রাউটার ইমপ্লিমেন্টেশন", + "code": "router.GET(\"/\", func(c *gin.Context) {\n\t// এখানে কোড লিখুন\n})" }] }, { diff --git a/data/golang.json b/data/golang.json index 1d183b745..60d167b7e 100644 --- a/data/golang.json +++ b/data/golang.json @@ -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}" } ] },