rewrite

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: BSD-3-Clause Imports: 24 Imported by: 0

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) Name

func (*Cmd) Name() string

Name implements subcommand.Command.

func (*Cmd) RewriteTargets

func (cmd *Cmd) RewriteTargets(ctx context.Context, targets []string) error

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).

func (*Cmd) SetFlags

func (cmd *Cmd) SetFlags(f *flag.FlagSet)

SetFlags implements subcommand.Command.

func (*Cmd) Synopsis

func (*Cmd) Synopsis() string

Synopsis implements subcommand.Command.

func (*Cmd) Usage

func (*Cmd) Usage() string

Usage implements subcommand.Command.

Jump to

Keyboard shortcuts

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