Categorygithub.com/reddec/godetector
modulepackage
0.0.0-20200420065712-f938e1104afe
Repository: https://github.com/reddec/godetector.git
Documentation: pkg.go.dev

# README

GO-Detector

Documentation license donate

The library aims to provide useful utilities to work with golang packages:

  • Detect package name from directory (not just by using base name, but also parse go files)
  • Detect package import path (including vendor support and go modules)
  • Detect import package definition (where go files located) with respect to gomodules

# Packages

No description provided by the author
No description provided by the author

# Functions

Find import path assuming that directory contains Go package.
Find package definition with respect to gomodules.
Find package name by directory: scans go file to detect package definition and uses path detection as fail-over.
No description provided by the author
No description provided by the author
Aggregated information about directory.
Find correct import definition in a file: "lala" "net/http" will be resolve to "net/http".

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author