golang的私有化定制自动更新插件
zanbin168
2023-05-16 d9247a34e12ad63cc410639f25210a1018e33c85
update
6个文件已修改
22 ■■■■ 已修改文件
README.md 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_example/latest/latest.go 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_example/specific/specific.go 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
go.mod 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
stores/apex/apex.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
stores/github/github.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
README.md
@@ -1,11 +1,11 @@
## go-update
## goupdate
Package update provides tooling to auto-update binary releases
from GitHub based on the user's current version and operating system. Used by command-line tools such as [Up](https://github.com/apex/up) and [Apex](https://github.com/apex/apex).
---
[![GoDoc](https://godoc.org/github.com/zan8in/go-update?status.svg)](https://godoc.org/github.com/zan8in/go-update)
[![GoDoc](https://godoc.org/github.com/zan8in/goupdate?status.svg)](https://godoc.org/github.com/zan8in/goupdate)
![](https://img.shields.io/badge/license-MIT-blue.svg)
![](https://img.shields.io/badge/status-stable-green.svg)
_example/latest/latest.go
@@ -7,9 +7,9 @@
    "github.com/apex/log"
    "github.com/kierdavis/ansi"
    "github.com/zan8in/go-update"
    "github.com/zan8in/go-update/progress"
    "github.com/zan8in/go-update/stores/github"
    update "github.com/zan8in/goupdate"
    "github.com/zan8in/goupdate/progress"
    "github.com/zan8in/goupdate/stores/github"
)
func init() {
_example/specific/specific.go
@@ -7,9 +7,9 @@
    "github.com/apex/log"
    "github.com/kierdavis/ansi"
    "github.com/zan8in/go-update"
    "github.com/zan8in/go-update/progress"
    "github.com/zan8in/go-update/stores/github"
    update "github.com/zan8in/goupdate"
    "github.com/zan8in/goupdate/progress"
    "github.com/zan8in/goupdate/stores/github"
)
func init() {
go.mod
@@ -1,4 +1,4 @@
module github.com/zan8in/go-update
module github.com/zan8in/goupdate
go 1.16
stores/apex/apex.go
@@ -9,7 +9,7 @@
    "github.com/pkg/errors"
    "github.com/tj/go/http/request"
    "github.com/zan8in/go-update"
    update "github.com/zan8in/goupdate"
)
// Store is the store implementation.
stores/github/github.go
@@ -6,7 +6,7 @@
    "time"
    "github.com/google/go-github/github"
    "github.com/zan8in/go-update"
    update "github.com/zan8in/goupdate"
)
// Store is the store implementation.