golang/go

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

Chiusa

#75.589 aperta il 24 set 2025

 (13 commenti) (1 reazione) (0 assegnatari)Go (19.008 fork)batch import
NeedsInvestigationRefactoringToolshelp wanted

Metriche repository

Star
 (133.883 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor