headers

package
v0.0.0-...-2aa45d2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LintMode bool
View Source
var Verbose bool

Functions

func Replace

func Replace(cfg *Config, cmdLineFiles []string, newHeader string) error

func Run

func Run(cfg *Config, cmdLineFiles []string) error

Types

type Config

type Config struct {
	HeaderText string
	Spec       []*Spec

	Options *Options
	// contains filtered or unexported fields
}

func LoadConfigFromFile

func LoadConfigFromFile(filename string) (*Config, error)

type Options

type Options struct {
	FullFilepath bool
	ExcludeRegex string
}

type Spec

type Spec struct {
	Regex string

	Comment    string
	EndComment string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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