{"modulePath":"github.com/hyperhq/hypercli","version":"v1.10.16","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package useragent\n\nPackage useragent provides helper functions to pack version information into a single User-Agent header.\n\n## Functions\n\n```go\nfunc AppendVersions(base string, versions ...VersionInfo) string\n```\nAppendVersions converts versions to a string and appends the string to the string base.\n\nEach VersionInfo will be converted to a string in the format of \"product/version\", where the \"product\" is get from the name field, while version is get from the version field. Several pieces of version information will be concatenated and separated by space.\n\nExample: AppendVersions(\"base\", VersionInfo{\"foo\", \"1.0\"}, VersionInfo{\"bar\", \"2.0\"}) results in \"base foo/1.0 bar/2.0\".\n\n## Types\n\n```go\ntype VersionInfo struct {\n\tName    string\n\tVersion string\n}\n```\nVersionInfo is used to model UserAgent versions.\n\n","path":"github.com/hyperhq/hypercli/pkg/useragent","name":"useragent","synopsis":"Package useragent provides helper functions to pack version information into a single User-Agent header.","isRedistributable":true}
