Documentation
¶
Overview ¶
The internalise command modifies Go files in place, making exported methods internal.
Usage:
internalise -file <filepath> <type>.<method> [<type>.<method> [...]]
For example, with file foo.go containing declarations:
func (f *Foo) Bar() { ... } func (Foo) Baz() { ... }
running
internalise -file foo.go Foo.Bar Foo.Baz
results in
func (f *Foo) bar() { ... } func (Foo) baz() { ... }
Click to show internal directories.
Click to hide internal directories.