This package gets a GO program's BuildId. Usage,
s, err := buildid.New("/proc/self/exe")
if err != nil {
fmt.Frintln(os.Stderr, err)
} else {
fmt.Println(s)
}
Which is equivalent to,
$ go tool buildid PROGRAM
© 2018-2019 Platina Systems, Inc. All rights reserved. Use of this source code is governed by this BSD-style LICENSE.