mirror of
https://github.com/kataras/iris.git
synced 2025-02-13 12:36:20 +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.
|
The only requirement is the [Go Programming Language](https://golang.org/dl/), version 1.12 and above.
|
||||||
|
|
||||||
```sh
|
```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:
|
Or inside your `go.mod` file:
|
||||||
|
@ -14,7 +14,7 @@ module your_project_name
|
||||||
go 1.12
|
go 1.12
|
||||||
|
|
||||||
require (
|
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) {
|
func fireProblem(ctx iris.Context) {
|
||||||
// Response like JSON but with indent of " " and
|
// Response like JSON but with indent of " " and
|
||||||
// content type of "application/problem+json"
|
// 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.
|
// Optional JSON renderer settings.
|
||||||
JSON: iris.JSON{
|
JSON: iris.JSON{
|
||||||
Indent: " ",
|
Indent: " ",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user