mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-05 16:56:54 +08:00
12 lines
183 B
Go
12 lines
183 B
Go
package version
|
|
|
|
import (
|
|
"runtime/debug"
|
|
)
|
|
|
|
// Info returns project dependencies as []*debug.Module.
|
|
func Info() []*debug.Module {
|
|
bi, _ := debug.ReadBuildInfo()
|
|
return bi.Deps
|
|
}
|