astutil

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PackageNameFromImportPath added in v0.1.2

func PackageNameFromImportPath(importPath string) (string, bool)

PackageNameFromImportPath will return package alias name and true if it has a version suffix in the end of the path (ex.: github.com/go-pg/pg/v9)

func UsesImport

func UsesImport(f *ast.File, importPath string) bool

UsesImport is a similar to astutil.UsesImport but with skipping version in the import path

Types

This section is empty.

Jump to

Keyboard shortcuts

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