Home / Function/ UnmarshalJSON() — gin Function Reference

UnmarshalJSON() — gin Function Reference

Architecture documentation for the UnmarshalJSON() function in test.pb.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  fd9a1edf_a762_7663_72e4_f08f4d4a7dca["UnmarshalJSON()"]
  5ffd8c51_06af_bd7a_f096_bbf3d280678f["Descriptor()"]
  fd9a1edf_a762_7663_72e4_f08f4d4a7dca -->|calls| 5ffd8c51_06af_bd7a_f096_bbf3d280678f
  style fd9a1edf_a762_7663_72e4_f08f4d4a7dca fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testdata/protoexample/test.pb.go lines 62–69

func (x *FOO) UnmarshalJSON(b []byte) error {
	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
	if err != nil {
		return err
	}
	*x = FOO(num)
	return nil
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does UnmarshalJSON() do?
UnmarshalJSON() is a function in the gin codebase.
What does UnmarshalJSON() call?
UnmarshalJSON() calls 1 function(s): Descriptor.

Analyze Your Own Codebase

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

Try Supermodel Free