Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SkipVersion ¶ added in v0.1.3
func SkipVersion(v string)
SkipVersion records a version the user chose to skip, suppressing future notices for it.
func Start ¶
Start serves the editor using an already-open listener. root is the working directory for the editor (used by API handlers registered in later tasks). assets is an embedded FS rooted at the "static" directory. The caller is responsible for printing the listening address after Start returns successfully.
Types ¶
type UpdateInfo ¶ added in v0.1.3
type UpdateInfo struct {
Current string `json:"current"`
Latest string `json:"latest"`
Available bool `json:"available"`
ViaPkg bool `json:"viaPkg"`
}
UpdateInfo is the result of an update check, returned to callers and the API.
func CheckForUpdate ¶ added in v0.1.3
func CheckForUpdate(current string, viaPkg bool) UpdateInfo
CheckForUpdate reports whether a newer release than current is available. It caches the GitHub result for checkInterval to avoid hammering the API. Returns Available=false for dev builds, when offline, or when up to date.