Home / Function/ init() — gin Function Reference

init() — gin Function Reference

Architecture documentation for the init() function in json_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  4609efb2_618e_c314_0cac_609c33de20a5["init()"]
  5fc3e4c8_9ce1_a1b5_76da_8025131b9864["json_test.go"]
  4609efb2_618e_c314_0cac_609c33de20a5 -->|defined in| 5fc3e4c8_9ce1_a1b5_76da_8025131b9864
  style 4609efb2_618e_c314_0cac_609c33de20a5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/json_test.go lines 78–81

func init() {
	customConfig.RegisterExtension(&TimeEx{})
	customConfig.RegisterExtension(&TimePointerEx{})
}

Subdomains

Frequently Asked Questions

What does init() do?
init() is a function in the gin codebase, defined in binding/json_test.go.
Where is init() defined?
init() is defined in binding/json_test.go at line 78.

Analyze Your Own Codebase

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

Try Supermodel Free