getNum() — graph2md Function Reference
Architecture documentation for the getNum() function in main.go from the graph2md codebase.
Entity Profile
Dependency Diagram
graph TD 39202d59_b62a_a0fd_43a5_c4f95ee05349["getNum()"] 80fa005d_7e3e_f056_f8f8_f520be5cd3e1["main.go"] 39202d59_b62a_a0fd_43a5_c4f95ee05349 -->|defined in| 80fa005d_7e3e_f056_f8f8_f520be5cd3e1 style 39202d59_b62a_a0fd_43a5_c4f95ee05349 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
main.go lines 2176–2188
func getNum(m map[string]interface{}, key string) int {
v, ok := m[key]
if !ok {
return 0
}
switch n := v.(type) {
case float64:
return int(n)
case int:
return n
}
return 0
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getNum() do?
getNum() is a function in the graph2md codebase, defined in main.go.
Where is getNum() defined?
getNum() is defined in main.go at line 2176.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free