Commit Graph

5 Commits

Author SHA1 Message Date
WaterLemons2k
ead4e1d87e
chore: remove unused params and unnecessary nil checks (#1052)
See:

- https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/unusedparams
- https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/nilness
2024-03-22 04:19:49 -07:00
jeessy2
826f7a01e8
feat: Change the default language for self-update to English (#970) 2024-01-11 02:08:25 -08:00
jeessy2
7c69aa1bf7
feat: gomod v5 to v6 & upgrade golang to 1.21 (#969) 2024-01-11 16:25:14 +08:00
jeessy2
eec98404fe
feat: support english (#967)
* feat: init the i18n

* fix: porkbun

* refactor: http_util GetHTTPResponse

* fix: save

* fix: add more i18n

* feat: i18n at writing.html

* feat: README EN

* fix: default api

* fix: pic
2024-01-11 15:52:53 +08:00
WaterLemons2k
352e6b8762
feat: self update (#806)
Added package `update` and `semver` that can be used for selfupdate.

Most of the code was copied from [go-selfupdate](https://github.com/creativeprojects/go-selfupdate), [go-update](https://github.com/inconshreveable/go-update) and [semver](https://github.com/Masterminds/semver). Most of the unneeded code has been removed, so there is no need to add new dependencies.

In addition, users with the `mips` arch will not be able to selfupdate, as there is no way to get the float of the MIPS arch.

Tested OS and arch:
- [x] linux/amd64
- [x] linux/arm64
- [x] windows/amd64
2023-08-06 18:56:53 +08:00