mirror of
https://github.com/kataras/iris.git
synced 2026-01-26 05:15:56 +00:00
add(?) the chinese readme, some sentences are from the previous translation by community and the rest.... let's hope someone will help us more here
Former-commit-id: bd5fbd2ee29389f609793148845c658f08722297
This commit is contained in:
@@ -171,6 +171,15 @@ func(ctx iris.Context) {
|
||||
Item's name: {{.Name}}
|
||||
```
|
||||
|
||||
## context#YAML
|
||||
|
||||
Add a new `context#YAML` function, it renders a yaml from a structured value.
|
||||
|
||||
```go
|
||||
// YAML marshals the "v" using the yaml marshaler and renders its result to the client.
|
||||
func YAML(v interface{}) (int, error)
|
||||
```
|
||||
|
||||
## Session#GetString
|
||||
|
||||
`sessions/session#GetString` can now return a filled value even if the stored value is a type of integer, just like the memstore, the context's temp store, the context's path parameters and the context's url parameters.
|
||||
Reference in New Issue
Block a user