Yet another fastmod alternative.
Replace all occurrences of a name to another name in {camel,kebab,shout,snake,...}cases in your codes!
- Support for different case styles
- See
rnm --helpto list them all.
- See
- Automatic pluralization
- File renaming
- Massive speed
go install github.com/raviqqe/rnm@latestrnm 'foo bar' 'baz qux'For more information, see rnm --help.
Given a file named foo_bar.go:
const FOO_BAR = 42
type FooBar struct {
fooBar int
}
func (f FooBar) fooBar() {
println("foo bar")
}When you run rnm 'foo bar' 'baz qux', you would see a file named baz_qux.go with contents:
const BAZ_QUX = 42
type BazQux struct {
bazQux int
}
func (f BazQux) bazQux() {
println("baz qux")
}