internal

package
v0.8.25 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixImports

func FixImports() error

func GetModuleName

func GetModuleName() (string, error)

func Tidy

func Tidy() error

Types

type Packages

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

func (*Packages) GetFileNameType

func (p *Packages) GetFileNameType(importPath string, t string) (string, error)

func (*Packages) GetSource

func (p *Packages) GetSource(pkg *packages.Package, start, end token.Pos) (string, string)

func (*Packages) Load

func (p *Packages) Load(importPath string) (*packages.Package, error)

func (*Packages) PackageFromPath

func (p *Packages) PackageFromPath(importPath string) (*packages.Package, error)

Jump to

Keyboard shortcuts

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