diff --git a/en/13.4.md b/en/13.4.md index b2b95e32..dfe0a8b2 100644 --- a/en/13.4.md +++ b/en/13.4.md @@ -224,7 +224,7 @@ Below are a number of functions the parser uses for reading the configuration fi ## Application guide -The following function is an example of the application, to access remote URL address Json data to achieve the following: +The following function is an example of an application I used to fetch json data from a remote url address: func GetJson() { resp, err := http.Get(beego.AppConfig.String("url")) @@ -240,7 +240,7 @@ The following function is an example of the application, to access remote URL ad } } -Function calls the framework of the log function `beego.Critical` function is used to being given, called `beego.AppConfig.String(" url ")` is used to obtain the configuration information in the file, configuration files are as follows(app.conf ): +Beego's `Critical()` logging function is called to report any errors which may occur in the `GetJson()` function. `beego.AppConfig.String("url")` is used to obtain information from a configuration file (typically `app.conf`), which might look something like the following: appname = hs url ="http://www.api.com/api.html" @@ -248,5 +248,5 @@ Function calls the framework of the log function `beego.Critical` function is us ## Links - [Directory](preface.md) -- Previous section: [Design controllers](13.3.md) -- Next section: [Add, delete and update blogs](13.5.md) +- Previous section: [Designing controllers](13.3.md) +- Next section: [Adding, deleting and updating blogs](13.5.md)