Home / File/ query.go — gin Source File

query.go — gin Source File

Architecture documentation for query.go, a go file in the gin codebase. 1 imports, 0 dependents.

File go 1 imports

Entity Profile

Dependency Diagram

graph LR
  cbc49ad9_2cf9_c791_1dc3_519b5d6d8f05["query.go"]
  08248871_dc00_f330_15ef_4a0fbf2bafbb["http"]
  cbc49ad9_2cf9_c791_1dc3_519b5d6d8f05 --> 08248871_dc00_f330_15ef_4a0fbf2bafbb
  style cbc49ad9_2cf9_c791_1dc3_519b5d6d8f05 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// Copyright 2017 Manu Martinez-Almeida. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.

package binding

import "net/http"

type queryBinding struct{}

func (queryBinding) Name() string {
	return "query"
}

func (queryBinding) Bind(req *http.Request, obj any) error {
	values := req.URL.Query()
	if err := mapForm(obj, values); err != nil {
		return err
	}
	return validate(obj)
}

Types

Dependencies

  • http

Frequently Asked Questions

What does query.go do?
query.go is a source file in the gin codebase, written in go.
What does query.go depend on?
query.go imports 1 module(s): http.
Where is query.go in the architecture?
query.go is located at binding/query.go (directory: binding).

Analyze Your Own Codebase

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

Try Supermodel Free