Home / Function/ head() — gin Function Reference

head() — gin Function Reference

Architecture documentation for the head() function in form_mapping.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  b22872c8_095e_a558_ccc8_c2d9d844ebd4["head()"]
  be2f0281_158f_19d5_81a3_7906a21c7875["tryToSetValue()"]
  be2f0281_158f_19d5_81a3_7906a21c7875 -->|calls| b22872c8_095e_a558_ccc8_c2d9d844ebd4
  style b22872c8_095e_a558_ccc8_c2d9d844ebd4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/form_mapping.go lines 523–526

func head(str, sep string) (head string, tail string) {
	head, tail, _ = strings.Cut(str, sep)
	return head, tail
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does head() do?
head() is a function in the gin codebase.
What calls head()?
head() is called by 1 function(s): tryToSetValue.

Analyze Your Own Codebase

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

Try Supermodel Free