func (g *GPG) Version(ctx context.Context) semver.Version {
	return version(ctx, g.Binary())
}
Version will returns GPG version information
package cli
import (
	"bufio"
	"bytes"
	"context"
	"os/exec"
	"strings"
	"github.com/blang/semver/v4"
)
type gpgBin struct {
	path string
	ver  semver.Version
}
type byVersion []gpgBin
func (v byVersion) Len() int {
	return len(v)
}
func (v byVersion) Swap(i, j int) {
	v[i], v[j] = v[j], v[i]
}
func (v byVersion) Less(i, j int) bool {
	return v[i].ver.LT(v[j].ver)
}