go-github-selfupdate/selfupdate/release.go
rhysd f6766d9880 add more information to Release struct
- asset's size
- release name
- release time
2017-12-31 17:36:46 +09:00

24 lines
635 B
Go

package selfupdate
import (
"github.com/blang/semver"
"time"
)
// Release represents a release asset for current OS and arch.
type Release struct {
// Version is the version of the release
Version semver.Version
// AssetURL is a URL to the uploaded file for the release
AssetURL string
// AssetSize represents the size of asset in bytes
AssetByteSize int
// URL is a URL to release page for browsing
URL string
// ReleaseNotes is a release notes of the release
ReleaseNotes string
// Name represents a name of the release
Name string
// PublishedAt is the time when the release was published
PublishedAt *time.Time
}