{"modulePath":"github.com/voidint/g","version":"v1.8.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Types\n\n```go\ntype Asset struct {\n\tName               string `json:\"name\"`\n\tContentType        string `json:\"content_type\"`\n\tBrowserDownloadURL string `json:\"browser_download_url\"`\n}\n```\nAsset contains downloadable resource files.\n\n```go\nfunc (a Asset) IsCompressedFile() bool\n```\nIsCompressedFile checks if the file is in compressed format.\n\n```go\ntype Release struct {\n\tTagName string  `json:\"tag_name\"`\n\tAssets  []Asset `json:\"assets\"`\n}\n```\nRelease represents a software version release.\n\n```go\ntype ReleaseUpdater struct {\n}\n```\nReleaseUpdater handles version update checks and operations.\n\n```go\nfunc NewReleaseUpdater() *ReleaseUpdater\n```\nNewReleaseUpdater creates a release update handler instance.\n\n```go\nfunc (up ReleaseUpdater) Apply(rel *Release,\n\tfindAsset func([]Asset) (idx int),\n\tfindChecksum func([]Asset) (algo checksum.Algorithm, expectedChecksum string, err error),\n) error\n```\nApply performs version update to specified release.\n\n```go\nfunc (up ReleaseUpdater) CheckForUpdates(current *semver.Version, owner, repo string) (rel *Release, yes bool, err error)\n```\nCheckForUpdates verifies if newer version exists.\n\n","path":"github.com/voidint/g/pkg/sdk/github","name":"github","synopsis":"","isRedistributable":true}
