mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
version
parent
41cb5a9180
commit
cf39e57b04
|
@ -3,7 +3,7 @@ Iris is a cross-platform software.
|
|||
The only requirement is the [Go Programming Language](https://golang.org/dl/), version 1.12 and above.
|
||||
|
||||
```sh
|
||||
$ go get github.com/kataras/iris@v11.2.6
|
||||
$ go get github.com/kataras/iris@v11.2.7
|
||||
```
|
||||
|
||||
Or inside your `go.mod` file:
|
||||
|
@ -14,7 +14,7 @@ module your_project_name
|
|||
go 1.12
|
||||
|
||||
require (
|
||||
github.com/kataras/iris v11.2.6
|
||||
github.com/kataras/iris v11.2.7
|
||||
)
|
||||
```
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ func newProductProblem(productName, detail string) iris.Problem {
|
|||
func fireProblem(ctx iris.Context) {
|
||||
// Response like JSON but with indent of " " and
|
||||
// content type of "application/problem+json"
|
||||
ctx.Problem(newProductProblem("product name", "problem error details"), iris.ProblemOptions{
|
||||
ctx.Problem(newProductProblem("product name", "problem details"), iris.ProblemOptions{
|
||||
// Optional JSON renderer settings.
|
||||
JSON: iris.JSON{
|
||||
Indent: " ",
|
||||
|
|
Loading…
Reference in New Issue
Block a user