2022-02-11 10:13:50 +00:00
|
|
|
package utils
|
|
|
|
|
|
|
|
func update(url string) error {
|
2022-04-25 10:39:54 +00:00
|
|
|
// resp, err := http.Get(url)
|
|
|
|
// if err != nil {
|
2022-02-11 10:13:50 +00:00
|
|
|
// return err
|
|
|
|
//}
|
2022-04-25 10:39:54 +00:00
|
|
|
// defer resp.Body.Close()
|
2022-02-11 10:13:50 +00:00
|
|
|
//
|
|
|
|
//reader, _ := zip.NewReader(bytes.NewReader(), resp.ContentLength)
|
|
|
|
//_, err = reader.Open("go-cqhttp.exe")
|
|
|
|
//if err != nil {
|
|
|
|
// return err
|
|
|
|
//}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|