Home / Function/ DefaultQuery() — gin Function Reference

DefaultQuery() — gin Function Reference

Architecture documentation for the DefaultQuery() function in context.go from the gin codebase.

Function go CoreEngine Context calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  6a2a5a0b_42b0_7f06_e824_a84685323412["DefaultQuery()"]
  9a5c20a3_49db_1518_6510_eb2e94bd72eb["JSONP()"]
  9a5c20a3_49db_1518_6510_eb2e94bd72eb -->|calls| 6a2a5a0b_42b0_7f06_e824_a84685323412
  2904a485_2cd2_bc82_f4cb_f4b84f71f980["GetQuery()"]
  6a2a5a0b_42b0_7f06_e824_a84685323412 -->|calls| 2904a485_2cd2_bc82_f4cb_f4b84f71f980
  style 6a2a5a0b_42b0_7f06_e824_a84685323412 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

context.go lines 538–543

func (c *Context) DefaultQuery(key, defaultValue string) string {
	if value, ok := c.GetQuery(key); ok {
		return value
	}
	return defaultValue
}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free