Skip to content

Commit

Permalink
update examples for the upcoming release
Browse files Browse the repository at this point in the history
  • Loading branch information
kataras committed May 5, 2020
1 parent 31c3cd2 commit 64bf1ab
Show file tree
Hide file tree
Showing 259 changed files with 12,374 additions and 1,296 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
.vscode
.vscode
/issue-*/
.directory
node_modules
package-lock.json
go.sum
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ os:
- linux
- osx
go:
- 1.13.x
- 1.14.x
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016-2019 Gerasimos Maropoulos and contributors.
Copyright (c) 2016-2020 Gerasimos Maropoulos and contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
308 changes: 152 additions & 156 deletions README.md

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions apidoc/yaag/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module github.com/iris-contrib/examples/apidoc/yaag

go 1.14

require (
github.com/betacraft/yaag v1.0.1-0.20191027021412-565f65e36090
github.com/kataras/iris/v12 v12.2.0
)
6 changes: 1 addition & 5 deletions apidoc/yaag/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import (
"github.com/betacraft/yaag/yaag"
)

/*
go get github.com/betacraft/yaag@v1.0.1-0.20190930134538-3ebbf33677d5
*/

type myXML struct {
Result string `xml:"result"`
}
Expand Down Expand Up @@ -55,5 +51,5 @@ func main() {
//
// Example usage:
// Visit all paths and open the generated "apidoc.html" file to see the API's automated docs.
app.Run(iris.Addr(":8080"))
app.Listen(":8080")
}
2 changes: 1 addition & 1 deletion authentication/basicauth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func newApp() *iris.Application {
func main() {
app := newApp()
// open http://localhost:8080/admin
app.Run(iris.Addr(":8080"))
app.Listen(":8080")
}

func h(ctx iris.Context) {
Expand Down
2 changes: 1 addition & 1 deletion authentication/oauth2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ func main() {
})

// http://localhost:3000
app.Run(iris.Addr("localhost:3000"))
app.Listen("localhost:3000")
}

type ProviderIndex struct {
Expand Down
2 changes: 1 addition & 1 deletion cache/client-side/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func main() {
// })

app.Get("/", greet)
app.Run(iris.Addr(":8080"))
app.Listen(":8080")
}

func greet(ctx iris.Context) {
Expand Down
2 changes: 1 addition & 1 deletion cache/simple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func main() {
// saves its content on the first request and serves it instead of re-calculating the content.
// After 10 seconds it will be cleared and reset.

app.Run(iris.Addr(":8080"))
app.Listen(":8080")
}

func writeMarkdown(ctx iris.Context) {
Expand Down
283 changes: 0 additions & 283 deletions configuration/README.md

This file was deleted.

4 changes: 2 additions & 2 deletions configuration/from-configuration-structure/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func main() {
// [...]

// Good when you want to modify the whole configuration.
app.Run(iris.Addr(":8080"), iris.WithConfiguration(iris.Configuration{ // default configuration:
app.Listen(":8080", iris.WithConfiguration(iris.Configuration{ // default configuration:
DisableStartupLog: false,
DisableInterruptHandler: false,
DisablePathCorrection: false,
Expand All @@ -21,7 +21,7 @@ func main() {
DisableBodyConsumptionOnUnmarshal: false,
DisableAutoFireStatusCode: false,
TimeFormat: "Mon, 02 Jan 2006 15:04:05 GMT",
Charset: "UTF-8",
Charset: "utf-8",
}))

// or before Run:
Expand Down
2 changes: 1 addition & 1 deletion configuration/from-toml-file/configs/iris.tml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ EnablePathEscape = false
FireMethodNotAllowed = true
DisableBodyConsumptionOnUnmarshal = false
TimeFormat = "Mon, 01 Jan 2006 15:04:05 GMT"
Charset = "UTF-8"
Charset = "utf-8"

[Other]
MyServerName = "iris"
Loading

0 comments on commit 64bf1ab

Please sign in to comment.