mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 02:31:04 +01:00
We need your help with translations into your native language.
Instructions can be found at: https://github.com/kataras/iris/issues/796 written by @speedwheel Former-commit-id: e612ec2c42e09e10ad8bb17d164f7934bc4dca36
This commit is contained in:
parent
046bd3fc68
commit
a5440153c1
|
@ -39,7 +39,7 @@ We need your help with translations into your native language.
|
||||||
|
|
||||||
Iris needs your help, please think about contributing to the translation of the [README](README.md) and https://iris-go.com, you will be rewarded.
|
Iris needs your help, please think about contributing to the translation of the [README](README.md) and https://iris-go.com, you will be rewarded.
|
||||||
|
|
||||||
Chinese: https://github.com/kataras/iris/issues/796
|
Instructions can be found at: https://github.com/kataras/iris/issues/796
|
||||||
|
|
||||||
## Share
|
## Share
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ Not any new features or fixes (all reported bugs are fixed) in this version, jus
|
||||||
|
|
||||||
Iris needs your help, please think about contributing to the translation of the [README](README.md) and https://iris-go.com, you will be rewarded.
|
Iris needs your help, please think about contributing to the translation of the [README](README.md) and https://iris-go.com, you will be rewarded.
|
||||||
|
|
||||||
For Chinese Gophers: https://github.com/kataras/iris/issues/796
|
Instructions can be found at: https://github.com/kataras/iris/issues/796
|
||||||
|
|
||||||
# Su, 22 October 2017 | v8.5.3
|
# Su, 22 October 2017 | v8.5.3
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Structuring depends on your own needs. We can't tell you how to design your own
|
||||||
|
|
||||||
- [Bootstrapper](structuring/bootstrap)
|
- [Bootstrapper](structuring/bootstrap)
|
||||||
- [MVC with Repository and Service layer Overview](structuring/mvc-plus-repository-and-service-layers)
|
- [MVC with Repository and Service layer Overview](structuring/mvc-plus-repository-and-service-layers)
|
||||||
- [Login (MVC with Single Responsibility package)](structuring/login-mvc-single-responsible-package)
|
- [Login (MVC with Single Responsibility package)](structuring/login-mvc-single-responsibility-package)
|
||||||
- [Login (MVC with Datamodels, Datasource, Repository and Service layer)](structuring/login-mvc)
|
- [Login (MVC with Datamodels, Datasource, Repository and Service layer)](structuring/login-mvc)
|
||||||
|
|
||||||
### HTTP Listening
|
### HTTP Listening
|
||||||
|
|
16
version.go
16
version.go
|
@ -34,7 +34,7 @@ type versionInfo struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func checkVersion() {
|
func checkVersion() {
|
||||||
client := netutil.Client(30 * time.Second)
|
client := netutil.Client(25 * time.Second)
|
||||||
r, err := client.PostForm("https://iris-go.com/version", url.Values{"current_version": {Version}})
|
r, err := client.PostForm("https://iris-go.com/version", url.Values{"current_version": {Version}})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -60,18 +60,6 @@ func checkVersion() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if !v.UpdateAvailable {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// shouldUpdate := false
|
|
||||||
// prompt := &survey.Confirm{
|
|
||||||
// Message: shouldUpdateNowMsg,
|
|
||||||
// }
|
|
||||||
|
|
||||||
// if err := survey.AskOne(prompt, &shouldUpdate, nil); err != nil {
|
|
||||||
// return
|
|
||||||
// }
|
|
||||||
var qs []*survey.Question
|
var qs []*survey.Question
|
||||||
|
|
||||||
// on help? when asking for installing the new update
|
// on help? when asking for installing the new update
|
||||||
|
@ -157,7 +145,7 @@ func checkVersion() {
|
||||||
}
|
}
|
||||||
|
|
||||||
golog.Infof("Update process finished.\nManual rebuild and restart is required to apply the changes...\n")
|
golog.Infof("Update process finished.\nManual rebuild and restart is required to apply the changes...\n")
|
||||||
} else {
|
} else if v.UpdateAvailable { // if update was available but choosen not to update.
|
||||||
golog.Infof(ignoreUpdatesMsg)
|
golog.Infof(ignoreUpdatesMsg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user