golang/go

x/tools/go/analysis/passes/modernize: minmax: suggest deletion of redundant min and max functions

已关闭

#75,589 创建于 2025年9月24日

 (13 条评论) (1 个反应) (0 位负责人)Go (19,008 个派生)batch import
NeedsInvestigationRefactoringToolshelp wanted

仓库指标

星标
 (133,883 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Proposal Details

I proposal to add a checker to check whether user has impl a max/min instead of builtin max/min. And suggest user to replace with builtin max/min. search

language:go "func min"

in github with get about 142k result in code.

贡献者指南