gin/binding
cloud 78d2282ccd 1:tagValue only needs to be assigned once, which removes an unnecessary step.
Removed a potentially unnecessary temporary variable.
(I'm not sure if it's a personal preference, because this issue is completely negligible.)

2:This reduces a redundant check. When tagValue is empty, we can first check whether field.Name is empty before assigning it.With this approach, the comment in the second block can also be removed.

3:The second invocation of k, v := head(opt, "=") in the original code appears to be unnecessary and can be removed.
2026-06-03 19:43:07 +08:00
..
2025-04-12 00:00:59 +08:00
2022-05-30 15:16:10 +08:00