1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-25 22:12:38 +02:00

code cleanup: replace interface{} with any (#906)

This commit is contained in:
Marcin Federowicz
2023-09-24 08:44:02 +02:00
committed by GitHub
parent 5ccebe86c2
commit 36c2ee2718
36 changed files with 75 additions and 75 deletions

View File

@@ -158,7 +158,7 @@ func isExprABooleanLit(n ast.Node) (lexeme string, ok bool) {
}
// gofmt returns a string representation of an AST subtree.
func gofmt(x interface{}) string {
func gofmt(x any) string {
buf := bytes.Buffer{}
fs := token.NewFileSet()
printer.Fprint(&buf, fs, x)