formatters

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlackFormatter

type BlackFormatter struct{}

https://github.com/ambv/black

func (*BlackFormatter) FileExtensions

func (F *BlackFormatter) FileExtensions() []string

func (*BlackFormatter) FormatInPlace

func (F *BlackFormatter) FormatInPlace(args []string, file string) error

func (*BlackFormatter) FormatToBuffer

func (F *BlackFormatter) FormatToBuffer(args []string, file string, in io.Reader, out io.Writer) error

func (*BlackFormatter) IsInstalled

func (F *BlackFormatter) IsInstalled() bool

func (*BlackFormatter) Name

func (F *BlackFormatter) Name() string

type BuildifierFormatter

type BuildifierFormatter struct{}

func (*BuildifierFormatter) FileExtensions

func (F *BuildifierFormatter) FileExtensions() []string

func (*BuildifierFormatter) FormatInPlace

func (F *BuildifierFormatter) FormatInPlace(args []string, file string) error

func (*BuildifierFormatter) FormatToBuffer

func (F *BuildifierFormatter) FormatToBuffer(args []string, file string, in io.Reader, out io.Writer) error

func (*BuildifierFormatter) IsInstalled

func (F *BuildifierFormatter) IsInstalled() bool

func (*BuildifierFormatter) Name

func (F *BuildifierFormatter) Name() string

type ClangFormatter

type ClangFormatter struct{}

func (*ClangFormatter) FileExtensions

func (F *ClangFormatter) FileExtensions() []string

func (*ClangFormatter) FormatInPlace

func (F *ClangFormatter) FormatInPlace(args []string, file string) error

func (*ClangFormatter) FormatToBuffer

func (F *ClangFormatter) FormatToBuffer(args []string, file string, in io.Reader, out io.Writer) error

func (*ClangFormatter) IsInstalled

func (F *ClangFormatter) IsInstalled() bool

func (*ClangFormatter) Name

func (F *ClangFormatter) Name() string

type GofmtFormatter

type GofmtFormatter struct{}

func (*GofmtFormatter) FileExtensions

func (F *GofmtFormatter) FileExtensions() []string

func (*GofmtFormatter) FormatInPlace

func (F *GofmtFormatter) FormatInPlace(args []string, absPath string) error

func (*GofmtFormatter) FormatToBuffer

func (F *GofmtFormatter) FormatToBuffer(args []string, file string, in io.Reader, out io.Writer) error

func (*GofmtFormatter) IsInstalled

func (F *GofmtFormatter) IsInstalled() bool

func (*GofmtFormatter) Name

func (F *GofmtFormatter) Name() string

type PrettierFormatter

type PrettierFormatter struct{}

func (*PrettierFormatter) FileExtensions

func (F *PrettierFormatter) FileExtensions() []string

func (*PrettierFormatter) FormatInPlace

func (F *PrettierFormatter) FormatInPlace(args []string, file string) error

func (*PrettierFormatter) FormatToBuffer

func (F *PrettierFormatter) FormatToBuffer(args []string, file string, in io.Reader, out io.Writer) error

func (*PrettierFormatter) IsInstalled

func (F *PrettierFormatter) IsInstalled() bool

func (*PrettierFormatter) Name

func (F *PrettierFormatter) Name() string

type RustfmtFormatter

type RustfmtFormatter struct{}

func (*RustfmtFormatter) FileExtensions

func (F *RustfmtFormatter) FileExtensions() []string

func (*RustfmtFormatter) FormatInPlace

func (F *RustfmtFormatter) FormatInPlace(args []string, absPath string) error

func (*RustfmtFormatter) FormatToBuffer

func (F *RustfmtFormatter) FormatToBuffer(args []string, file string, in io.Reader, out io.Writer) error

func (*RustfmtFormatter) IsInstalled

func (F *RustfmtFormatter) IsInstalled() bool

func (*RustfmtFormatter) Name

func (F *RustfmtFormatter) Name() string

type UncrustifyFormatter

type UncrustifyFormatter struct{}

func (*UncrustifyFormatter) FileExtensions

func (F *UncrustifyFormatter) FileExtensions() []string

func (*UncrustifyFormatter) FormatInPlace

func (F *UncrustifyFormatter) FormatInPlace(args []string, absPath string) error

func (*UncrustifyFormatter) FormatToBuffer

func (F *UncrustifyFormatter) FormatToBuffer(args []string, file string, in io.Reader, out io.Writer) error

func (*UncrustifyFormatter) IsInstalled

func (F *UncrustifyFormatter) IsInstalled() bool

func (*UncrustifyFormatter) Name

func (F *UncrustifyFormatter) Name() string

type YapfFormatter

type YapfFormatter struct{}

func (*YapfFormatter) FileExtensions

func (F *YapfFormatter) FileExtensions() []string

func (*YapfFormatter) FormatInPlace

func (F *YapfFormatter) FormatInPlace(args []string, file string) error

func (*YapfFormatter) FormatToBuffer

func (F *YapfFormatter) FormatToBuffer(args []string, file string, in io.Reader, out io.Writer) error

func (*YapfFormatter) IsInstalled

func (F *YapfFormatter) IsInstalled() bool

func (*YapfFormatter) Name

func (F *YapfFormatter) Name() string

Jump to

Keyboard shortcuts

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