Comment on Stop using ldflags to embed Go build informationComments−ImJasonHOP5motl;dr debug.ReadBuildInfo has basically everything you need
Comments
tl;dr debug.ReadBuildInfo has basically everything you need