Home / Function/ UnmarshalText() — gin Function Reference

UnmarshalText() — gin Function Reference

Architecture documentation for the UnmarshalText() function in form_mapping_test.go from the gin codebase.

Function go DataBinding Validators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  16eb557a_9618_dcaa_f191_b5470389e8e3["UnmarshalText()"]
  76a61747_14da_3b9d_2ae0_daa34304d0ef["UnmarshalText()"]
  76a61747_14da_3b9d_2ae0_daa34304d0ef -->|calls| 16eb557a_9618_dcaa_f191_b5470389e8e3
  76a61747_14da_3b9d_2ae0_daa34304d0ef["UnmarshalText()"]
  16eb557a_9618_dcaa_f191_b5470389e8e3 -->|calls| 76a61747_14da_3b9d_2ae0_daa34304d0ef
  style 16eb557a_9618_dcaa_f191_b5470389e8e3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/form_mapping_test.go lines 852–861

func (p *customPathUnmarshalText) UnmarshalText(text []byte) error {
	elems := strings.Split(string(text), "/")
	n := len(elems)
	if n < 2 {
		return errors.New("invalid format")
	}

	*p = elems
	return nil
}

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free