https://github.com/mxk/go-gomod
Go package for obtaining compiled module information at run time
https://github.com/mxk/go-gomod
go golang
Last synced: 3 months ago
JSON representation
Go package for obtaining compiled module information at run time
- Host: GitHub
- URL: https://github.com/mxk/go-gomod
- Owner: mxk
- License: bsd-3-clause
- Created: 2019-01-21T00:38:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-21T16:17:01.000Z (over 6 years ago)
- Last Synced: 2025-01-06T19:47:30.485Z (5 months ago)
- Topics: go, golang
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gomod
=====[](https://godoc.org/github.com/mxk/go-gomod)
[](https://goreportcard.com/report/github.com/mxk/go-gomod)Package gomod provides information about modules compiled into the binary.
```
go get github.com/mxk/go-gomod
```The implementation requires access to `runtime` package internals via `unsafe`
to locate the file table and parse module information from compiled file paths.
Module names extracted from file paths may not match actual package names.