Skip to content

Commit f109dd9

Browse files
DeepAnchorjameswpm
authored andcommitted
Finalize translation fixes for 13.4.md
1 parent df5f0e6 commit f109dd9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

en/13.4.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Below are a number of functions the parser uses for reading the configuration fi
224224

225225
## Application guide
226226

227-
The following function is an example of the application, to access remote URL address Json data to achieve the following:
227+
The following function is an example of an application I used to fetch json data from a remote url address:
228228

229229
func GetJson() {
230230
resp, err := http.Get(beego.AppConfig.String("url"))
@@ -240,13 +240,13 @@ The following function is an example of the application, to access remote URL ad
240240
}
241241
}
242242

243-
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 ):
243+
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:
244244

245245
appname = hs
246246
url ="http://www.api.com/api.html"
247247

248248
## Links
249249

250250
- [Directory](preface.md)
251-
- Previous section: [Design controllers](13.3.md)
252-
- Next section: [Add, delete and update blogs](13.5.md)
251+
- Previous section: [Designing controllers](13.3.md)
252+
- Next section: [Adding, deleting and updating blogs](13.5.md)

0 commit comments

Comments
 (0)