Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Hardik180704/Go
/ nestedFunction
Function
nestedFunction
Functions/main.go:16–18 ·
view source on GitHub ↗
Nested function example
(fn func(a int) int)
Source
from the content-addressed store, hash-verified
14
15
// Nested function example
16
func
nestedFunction(fn
func
(a int) int) {
17
fn(5)
18
}
19
20
func
main() {
21
result := add(3, 4)
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected