Home / Function/ trySetCustom() — gin Function Reference

trySetCustom() — gin Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  755f0ebb_80c7_2e63_6a74_f8404f6a04ec["trySetCustom()"]
  12913085_e498_18b3_5bda_a23669e608df["setByForm()"]
  12913085_e498_18b3_5bda_a23669e608df -->|calls| 755f0ebb_80c7_2e63_6a74_f8404f6a04ec
  6153aa3f_ed0b_2237_43a1_5d4f68982dd7["setWithProperType()"]
  6153aa3f_ed0b_2237_43a1_5d4f68982dd7 -->|calls| 755f0ebb_80c7_2e63_6a74_f8404f6a04ec
  style 755f0ebb_80c7_2e63_6a74_f8404f6a04ec fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/form_mapping.go lines 191–197

func trySetCustom(val string, value reflect.Value) (isSet bool, err error) {
	switch v := value.Addr().Interface().(type) {
	case BindUnmarshaler:
		return true, v.UnmarshalParam(val)
	}
	return false, nil
}

Domain

Subdomains

Frequently Asked Questions

What does trySetCustom() do?
trySetCustom() is a function in the gin codebase.
What calls trySetCustom()?
trySetCustom() is called by 2 function(s): setByForm, setWithProperType.

Analyze Your Own Codebase

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

Try Supermodel Free