formatter

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatImports

func FormatImports(projectPath string, src string) string

Types

type Import

type Import struct {
	Import *dst.ImportSpec
	Kind   ImportKind
}

func (Import) String

func (i Import) String() string

type ImportKind

type ImportKind int
const (
	ImportKindBuiltin ImportKind = iota
	ImportKindThirdParty
	ImportKindLocal
)

func (ImportKind) String

func (i ImportKind) String() string

Jump to

Keyboard shortcuts

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