Home / Function/ Render() — gin Function Reference

Render() — gin Function Reference

Architecture documentation for the Render() function in html.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  fac915c0_464a_a955_d2b7_268b5730aeea["Render()"]
  98d89f2d_3866_14d1_299d_285a13281a9b["WriteContentType()"]
  fac915c0_464a_a955_d2b7_268b5730aeea -->|calls| 98d89f2d_3866_14d1_299d_285a13281a9b
  style fac915c0_464a_a955_d2b7_268b5730aeea fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

render/html.go lines 89–96

func (r HTML) Render(w http.ResponseWriter) error {
	r.WriteContentType(w)

	if r.Name == "" {
		return r.Template.Execute(w, r.Data)
	}
	return r.Template.ExecuteTemplate(w, r.Name, r.Data)
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free