Skip to content

emptyinterface/blankid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#blankid

a simple tool to replace unused function params with the blank id "_".

Usage:

Usage: blankid [-w] [-recv] [-ret] <file[s]>
  -recv
      include receivers in scan
  -ret
      include returns in scan
  -w
      overwrite file with changes

###Before:

http.HandleFunc("/health", func(w http.ResponseWriter, req *http.Request) {
	w.WriteHeader(http.StatusOK)
})

###After:

http.HandleFunc("/health", func(w http.ResponseWriter, _ *http.Request) {
	w.WriteHeader(http.StatusOK)
})

License: MIT 2016

About

replace unused function params with the blank id "_"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages