Skip to content

Commit 2a8c29a

Browse files
author
Sabbir Ahmed
authored
Merge pull request #895 from raihaninfo/develop
added golang genaric function
2 parents dff2edf + c79238c commit 2a8c29a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

data/golang.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,18 @@
481481
"code":"ch := make(chan int, 5)"
482482
}
483483
]
484+
},
485+
{
486+
"title":"জেনারিক ফাংশন",
487+
"items":[{
488+
"definition":"জেনারিক ফাংশন তৈরি করা",
489+
"code":"func genericFunc[T any](a T) T {\n\treturn a\n}"
490+
},
491+
{
492+
"definition":"জেনারিক ফাংশন কল করা",
493+
"code":"genericFunc[int](5)"
494+
}
495+
]
484496
}
485497
]
486498
}

0 commit comments

Comments
 (0)