From 77c592bf55b4647cc56f65cd3a93aeae6b762314 Mon Sep 17 00:00:00 2001 From: mehrdadbn9 Date: Thu, 12 Feb 2026 22:57:16 +0330 Subject: [PATCH] style: fix gofmt issues --- binding/binding_nomsgpack.go | 24 ++++++++++++------------ gin.go | 1 - 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/binding/binding_nomsgpack.go b/binding/binding_nomsgpack.go index ae364d79..9dd76b2f 100644 --- a/binding/binding_nomsgpack.go +++ b/binding/binding_nomsgpack.go @@ -71,18 +71,18 @@ var Validator StructValidator = &defaultValidator{} // These implement the Binding interface and can be used to bind the data // present in the request to struct instances. var ( - JSON = jsonBinding{} - XML = xmlBinding{} - Form = formBinding{} - Query = queryBinding{} - FormPost = formPostBinding{} - FormMultipart = formMultipartBinding{} - ProtoBuf = protobufBinding{} - YAML = yamlBinding{} - Uri = uriBinding{} - Header = headerBinding{} - TOML = tomlBinding{} - Plain = plainBinding{} + JSON = jsonBinding{} + XML = xmlBinding{} + Form = formBinding{} + Query = queryBinding{} + FormPost = formPostBinding{} + FormMultipart = formMultipartBinding{} + ProtoBuf = protobufBinding{} + YAML = yamlBinding{} + Uri = uriBinding{} + Header = headerBinding{} + TOML = tomlBinding{} + Plain = plainBinding{} BSON BindingBody = bsonBinding{} ) diff --git a/gin.go b/gin.go index 472c9ec8..cae96c7e 100644 --- a/gin.go +++ b/gin.go @@ -96,7 +96,6 @@ type Engine struct { // (used for routing HTTP requests) happens only once, even if called multiple times concurrently. routeTreesUpdated sync.Once - // mu protects concurrent access to trees mu sync.RWMutex