import "github.com/yuta-yoshinaga/go_trumpcards/internal/infrastructure/update"Updater checks GitHub Releases for the latest version and self-updates the binary.
type Updater struct {
// contains filtered or unexported fields
}func NewUpdater(currentVersion string, reader io.Reader, writer, errWriter io.Writer) *UpdaterNewUpdater creates a new Updater.
func (u *Updater) Exec() errorExec runs the self-update flow.
Generated by gomarkdoc