modulepackage
0.0.0-20200420065712-f938e1104afe
Repository: https://github.com/reddec/godetector.git
Documentation: pkg.go.dev
# README
GO-Detector
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
# 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".
# Type aliases
No description provided by the author