Home / Function/ hasLabel() — graph2md Function Reference

hasLabel() — graph2md Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  80c44f8a_e7e7_c7a2_a444_7ffd708b9405["hasLabel()"]
  19d7285e_2dbf_69a0_6ada_b2031521fd4e["main.go"]
  80c44f8a_e7e7_c7a2_a444_7ffd708b9405 -->|defined in| 19d7285e_2dbf_69a0_6ada_b2031521fd4e
  b8c81770_53e9_c49f_8a64_ee57b9b3bb27["main()"]
  b8c81770_53e9_c49f_8a64_ee57b9b3bb27 -->|calls| 80c44f8a_e7e7_c7a2_a444_7ffd708b9405
  style 80c44f8a_e7e7_c7a2_a444_7ffd708b9405 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

main.go lines 2155–2162

func hasLabel(node *Node, label string) bool {
	for _, l := range node.Labels {
		if l == label {
			return true
		}
	}
	return false
}

Subdomains

Defined In

Called By

Frequently Asked Questions

What does hasLabel() do?
hasLabel() is a function in the graph2md codebase, defined in main.go.
Where is hasLabel() defined?
hasLabel() is defined in main.go at line 2155.
What calls hasLabel()?
hasLabel() is called by 1 function(s): main.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free