rf
rf copied to clipboard
A refactoring tool for Go
using this file: ~~~go package widevine import ( "crypto" "crypto/rsa" "strings" ) func Signed_Request() { rsa.SignPSS( strings.NewReader("hello world"), nil, crypto.SHA1, nil, nil, ) } ~~~ I get this result: ~~~...
One thing I would like to do in my refactoring is change a local variable naming convention. e.g., in package runtime, rename all variables of type `*m` with name `_m_`...
There might a behavior regression in Go, since `go1.16` can run the tests successfully, but `go1.19` and `gotip` fail with `panic: lost receiver name`. ``` go1.16.10 test ./... ok rsc.io/rf...
Previously blank imports were always removed which prevents using packages for init-only purposes. Updated tests to reflect this changes.
This is really just a shorthand for `mv sym exportedSym` but it makes it more convenient when exporting a slew of symbols such as a bunch of constants or types....
I'd like to convert my old usages of unsafe casts to use unsafe.Add. I started with the simplest of rules to begin this: ```go ex { import "unsafe"; var p...
[wire](https://github.com/google/wire) relies on custom build tags in initializer files to generate code. The files that are loaded/built by default are part of the generated output and the files that rf...
I haven't found a way to specify a different source package than the current one when invoking commands like `mv A B`. I'm working around this limitation by calling `rf`...
When I try to run `rf` on our code repo, I get lots of errors like this: ``` ../../objectstore/common/fetch_exported_test.go:22:71: cannot use hasher (variable of type *common.Hasher) as *common.Hasher value in...