mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
New XMLMap func which makes a map value type an xml compatible content to render and give option to render a Problem as XML - rel to #1335
Former-commit-id: dcf21098ff7af6becfa9896df5f82c3b0b53f0ac
This commit is contained in:
7
iris.go
7
iris.go
@@ -503,6 +503,13 @@ var (
|
||||
//
|
||||
// A shortcut for the `context#NewProblem`.
|
||||
NewProblem = context.NewProblem
|
||||
// XMLMap wraps a map[string]interface{} to compatible xml marshaler,
|
||||
// in order to be able to render maps as XML on the `Context.XML` method.
|
||||
//
|
||||
// Example: `Context.XML(XMLMap("Root", map[string]interface{}{...})`.
|
||||
//
|
||||
// A shortcut for the `context#XMLMap`.
|
||||
XMLMap = context.XMLMap
|
||||
)
|
||||
|
||||
// Contains the enum values of the `Context.GetReferrer()` method,
|
||||
|
||||
Reference in New Issue
Block a user