toSlug() — graph2md Function Reference
Architecture documentation for the toSlug() function in main.go from the graph2md codebase.
Entity Profile
Dependency Diagram
graph TD a781225f_9a20_1671_b529_7359613f73fc["toSlug()"] 19d7285e_2dbf_69a0_6ada_b2031521fd4e["main.go"] a781225f_9a20_1671_b529_7359613f73fc -->|defined in| 19d7285e_2dbf_69a0_6ada_b2031521fd4e cb1308f3_ccc9_2add_e151_a235170fc89b["generateSlug()"] cb1308f3_ccc9_2add_e151_a235170fc89b -->|calls| a781225f_9a20_1671_b529_7359613f73fc style a781225f_9a20_1671_b529_7359613f73fc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
main.go lines 19–24
func toSlug(s string) string {
s = strings.ToLower(s)
s = nonAlnum.ReplaceAllString(s, "-")
s = strings.Trim(s, "-")
return s
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does toSlug() do?
toSlug() is a function in the graph2md codebase, defined in main.go.
Where is toSlug() defined?
toSlug() is defined in main.go at line 19.
What calls toSlug()?
toSlug() is called by 1 function(s): generateSlug.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free