Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/derekbanas/Go-Tutorial
/ getSumGen
Function
getSumGen
hellogo.go:118–120 ·
view source on GitHub ↗
(x T, y T)
Source
from the content-addressed store, hash-verified
116
}
117
118
func
getSumGen[T MyConstraint](x T, y T) T {
119
return
x + y
120
}
121
122
// ----- STRUCTS -----
123
type
customer
struct
{
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected