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

倉庫指標

星標
 (133,883 顆星)
PR 合併指標
 (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.

貢獻者指南