golang/go

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

Open

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

在 GitHub 查看
 (13 评论) (1 反应) (0 负责人)Go (133,883 star) (19,008 fork)batch import
NeedsInvestigationRefactoringToolshelp wanted

描述

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.

贡献者指南

x/tools/go/analysis/passes/modernize: minmax: suggest deletion of redundant min and max functions · golang/go#75589 | Good First Issue