This repository has been archived on 2023-11-08. You can view files and clone it, but cannot push or open issues/pull-requests.
eget/forge/forge.go

23 lines
276 B
Go

package forge
type Forge string
const (
ForgeGitea Forge = "gitea"
ForgeGitHub Forge = "github"
)
type Release struct {
Name string
Assets []Asset
}
type Asset struct {
Name string
DownloadURL string
}
type Forger interface {
Latest() (Release, error)
}