update

update

import "github.com/yuta-yoshinaga/go_trumpcards/internal/infrastructure/update"

Index

## type Updater

Updater checks GitHub Releases for the latest version and self-updates the binary.

type Updater struct {
    // contains filtered or unexported fields
}

### func NewUpdater

func NewUpdater(currentVersion string, reader io.Reader, writer, errWriter io.Writer) *Updater

NewUpdater creates a new Updater.

### func (*Updater) Exec

func (u *Updater) Exec() error

Exec runs the self-update flow.

Generated by gomarkdoc