Home / File/ deprecated.go — gin Source File

deprecated.go — gin Source File

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

File go 1 imports

Entity Profile

Dependency Diagram

graph LR
  fa93739f_9462_2210_c693_99ef8ae568f0["deprecated.go"]
  5c999ab2_59dc_b1a2_b248_f2f6b0ea17a3["log"]
  fa93739f_9462_2210_c693_99ef8ae568f0 --> 5c999ab2_59dc_b1a2_b248_f2f6b0ea17a3
  style fa93739f_9462_2210_c693_99ef8ae568f0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// Copyright 2014 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 gin

import (
	"log"

	"github.com/gin-gonic/gin/binding"
)

// BindWith binds the passed struct pointer using the specified binding engine.
// See the binding package.
//
// Deprecated: Use MustBindWith or ShouldBindWith.
func (c *Context) BindWith(obj any, b binding.Binding) error {
	log.Println(`BindWith(\"any, binding.Binding\") error is going to
	be deprecated, please check issue #662 and either use MustBindWith() if you
	want HTTP 400 to be automatically returned if any error occur, or use
	ShouldBindWith() if you need to manage the error.`)
	return c.MustBindWith(obj, b)
}

Dependencies

  • log

Frequently Asked Questions

What does deprecated.go do?
deprecated.go is a source file in the gin codebase, written in go.
What does deprecated.go depend on?
deprecated.go imports 1 module(s): log.

Analyze Your Own Codebase

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

Try Supermodel Free