goformatters

package
v1.63.4 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter interface {
	Name() string
	Format(filename string, src []byte) ([]byte, error)
}

type MetaFormatter

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

func NewMetaFormatter

func NewMetaFormatter(log logutils.Log, cfg *config.Config, enabledLinters map[string]*linter.Config) (*MetaFormatter, error)

func (*MetaFormatter) Format

func (m *MetaFormatter) Format(filename string, src []byte) []byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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