formatx

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 12 Imported by: 0

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