pkg/buildinfo/licenses.go

package buildinfo

import (
	_ "embed"
	"strings"
)

//go:generate go run ../../cmd/genlicenses -output third_party_licenses.txt

//go:embed third_party_licenses.txt
var thirdPartyLicenses string

// ThirdPartyLicenseReport returns the complete offline third-party notice.
func ThirdPartyLicenseReport() string {
	return strings.Replace(thirdPartyLicenses, "{{EZAGENT_VERSION}}", Version, 1)
}