Skip to content

Commit f8f1ca1

Browse files
authored
Update golang.json
Method receivers func
1 parent ffb5b47 commit f8f1ca1

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

data/golang.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,34 @@
370370
}
371371
]
372372
},
373+
{
374+
"title": "পদ্ধতি ( Methods ) | রিসিভার ( Receivers )",
375+
"items": [{
376+
"code": "type Vertex struct {"
377+
},
378+
{
379+
"code": "X, Y float64"
380+
},
381+
{
382+
"code":"}"
383+
},
384+
{
385+
"code": "func (v Vertex) Abs() float64 {"
386+
},
387+
{
388+
"code": "func (v Vertex) Abs() float64 {"
389+
},
390+
{
391+
"code": "}"
392+
},
393+
{
394+
"code": "v := Vertex{1, 2}"
395+
},
396+
{
397+
"code": "v.Abs()"
398+
}
399+
]
400+
},
373401
{
374402
"title": "পয়েন্টার",
375403
"items": [{

0 commit comments

Comments
 (0)