internalise

command
v1.13.14-0.2.0.rc.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

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() { ... }

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL