regenerate

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package regenerate regenerates some generated code.

Package regenerate regenerates some generated code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Glob

func Glob(pattern string, opts ...Option) error

func Pipe

func Pipe(in io.Reader, out file, opts ...Option) error

Types

type Configuration

type Configuration struct {
	// contains filtered or unexported fields
}

Configuration holds values changeable by options.

type Option

type Option func(*Configuration)

Option changes configuration.

func ReplaceRegexp

func ReplaceRegexp(match *regexp.Regexp, replacement string) Option

ReplaceRegexp add replacement.

func ReplaceString

func ReplaceString(match string, replacement string) Option

ReplaceString add replacement.

func WithGofmt

func WithGofmt(opts *imports.Options) Option

type Regexp

type Regexp struct {
	Match       *regexp.Regexp
	Replacement string
}

type String

type String struct {
	Match       string
	Replacement string
}

Jump to

Keyboard shortcuts

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