Documentation ¶
Overview ¶
Package rewrite implements the main open2opaque functionality: rewriting Go source code to use the opaque API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
Cmd implements the rewrite subcommand of the open2opaque tool.
func Command ¶
func Command() *Cmd
Command returns an initialized Cmd for registration with the subcommands package.
func (*Cmd) Execute ¶
func (cmd *Cmd) Execute(ctx context.Context, f *flag.FlagSet, _ ...any) subcommands.ExitStatus
Execute implements subcommand.Command.
func (*Cmd) RewriteTargets ¶
RewriteTargets implements the rewrite functionality, and is called either from within this same package (open2opaque rewrite) or from the rewritepending package (open2opaque rewrite-pending wrapper).
Click to show internal directories.
Click to hide internal directories.