Home / Function/ toSlug() — graph2md Function Reference

toSlug() — graph2md Function Reference

Architecture documentation for the toSlug() function in main.go from the graph2md codebase.

Entity Profile

Dependency Diagram

graph TD
  fee407d9_7c43_d137_4be8_0f44c679214c["toSlug()"]
  80fa005d_7e3e_f056_f8f8_f520be5cd3e1["main.go"]
  fee407d9_7c43_d137_4be8_0f44c679214c -->|defined in| 80fa005d_7e3e_f056_f8f8_f520be5cd3e1
  234fe91b_fb9f_ff66_8620_ad8caf50d9b1["generateSlug()"]
  234fe91b_fb9f_ff66_8620_ad8caf50d9b1 -->|calls| fee407d9_7c43_d137_4be8_0f44c679214c
  style fee407d9_7c43_d137_4be8_0f44c679214c 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

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