formatx

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(filename string, src []byte, processes ...Process) ([]byte, error)

func MustFormat

func MustFormat(filename string, src []byte, processes ...Process) []byte

func ParseFile

func ParseFile(filename string, src []byte) (*token.FileSet, *ast.File, error)

func SortImportsProcess

func SortImportsProcess(fset *token.FileSet, f *ast.File, filename string) error

Types

type Process

type Process func(fset *token.FileSet, f *ast.File, filename string) error

Jump to

Keyboard shortcuts

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