在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:inconshreveable/go-update开源软件地址:https://github.com/inconshreveable/go-update开源编程语言:Go 100.0%开源软件介绍:go-update: Build self-updating Go programsPackage update provides functionality to implement secure, self-updating Go programs (or other single-file targets) A program can update itself by replacing its executable file with a new version. It provides the flexibility to implement different updating user experiences like auto-updating, or manual user-initiated updates. It also boasts advanced features like binary patching and code signing verification. Example of updating from a URL: import (
"fmt"
"net/http"
"github.com/inconshreveable/go-update"
)
func doUpdate(url string) error {
resp, err := http.Get(url)
if err != nil {
return err
}
defer resp.Body.Close()
err := update.Apply(resp.Body, update.Options{})
if err != nil {
// error handling
}
return err
} Features
equinox.ioequinox.io is a complete ready-to-go updating solution built on top of go-update that provides:
API Compatibility PromisesThe master branch of The
API Breaking Changes
LicenseApache |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论