Skip to content

Commit

Permalink
mirc: adapt for mir v3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alimy committed Feb 15, 2023
1 parent be6eee4 commit 299fc60
Show file tree
Hide file tree
Showing 24 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion examples/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/alimy/mir-example/v3
go 1.18

require (
github.com/alimy/mir/v3 v3.0.1
github.com/alimy/mir/v3 v3.1.0
github.com/gin-gonic/gin v1.8.2
)

Expand Down
4 changes: 2 additions & 2 deletions examples/go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/alimy/mir/v3 v3.0.1 h1:70J/KMiEUDjpXfE2myqJ9aw408rshHdTKcN5yH74xqM=
github.com/alimy/mir/v3 v3.0.1/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/alimy/mir/v3 v3.1.0 h1:zk8Afsi1rcbRpL8MdGCkKqWqqLUupeSY9NcJgnXxic8=
github.com/alimy/mir/v3 v3.1.0/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
Expand Down
2 changes: 1 addition & 1 deletion examples/mirc/auto/api/site.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mirc/templates/chi/go.mod.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module {{ .PkgName }}
go 1.18

require (
github.com/alimy/mir/v3 v3.0.1
github.com/alimy/mir/v3 v3.1.0
github.com/go-chi/chi/v5 v5.0.8
)
{{if notEmptyStr .MirPkgName }}
Expand Down
4 changes: 2 additions & 2 deletions mirc/templates/chi/go.sum.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/alimy/mir/v3 v3.0.1 h1:70J/KMiEUDjpXfE2myqJ9aw408rshHdTKcN5yH74xqM=
github.com/alimy/mir/v3 v3.0.1/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/alimy/mir/v3 v3.1.0 h1:zk8Afsi1rcbRpL8MdGCkKqWqqLUupeSY9NcJgnXxic8=
github.com/alimy/mir/v3 v3.1.0/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/go-chi/chi/v5 v5.0.8 h1:lD+NLqFcAi1ovnVZpsnObHGW4xb4J8lNmoYVfECH1Y0=
github.com/go-chi/chi/v5 v5.0.8/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
2 changes: 1 addition & 1 deletion mirc/templates/echo/go.mod.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module {{ .PkgName }}
go 1.18

require (
github.com/alimy/mir/v3 v3.0.1
github.com/alimy/mir/v3 v3.1.0
github.com/labstack/echo/v4 v4.9.1
)

Expand Down
4 changes: 2 additions & 2 deletions mirc/templates/echo/go.sum.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/alimy/mir/v3 v3.0.1 h1:70J/KMiEUDjpXfE2myqJ9aw408rshHdTKcN5yH74xqM=
github.com/alimy/mir/v3 v3.0.1/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/alimy/mir/v3 v3.1.0 h1:zk8Afsi1rcbRpL8MdGCkKqWqqLUupeSY9NcJgnXxic8=
github.com/alimy/mir/v3 v3.1.0/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down
2 changes: 1 addition & 1 deletion mirc/templates/fiber-v2/go.mod.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module {{ .PkgName }}
go 1.18

require (
github.com/alimy/mir/v3 v3.0.1
github.com/alimy/mir/v3 v3.1.0
github.com/gofiber/fiber/v2 v2.40.1
)

Expand Down
4 changes: 2 additions & 2 deletions mirc/templates/fiber-v2/go.sum.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/alimy/mir/v3 v3.0.1 h1:70J/KMiEUDjpXfE2myqJ9aw408rshHdTKcN5yH74xqM=
github.com/alimy/mir/v3 v3.0.1/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/alimy/mir/v3 v3.1.0 h1:zk8Afsi1rcbRpL8MdGCkKqWqqLUupeSY9NcJgnXxic8=
github.com/alimy/mir/v3 v3.1.0/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/andybalholm/brotli v1.0.4 h1:V7DdXeJtZscaqfNuAdSRuRFzuiKlHSC/Zh3zl9qY3JY=
github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
github.com/gofiber/fiber/v2 v2.40.1 h1:pc7n9VVpGIqNsvg9IPLQhyFEMJL8gCs1kneH5D1pIl4=
Expand Down
2 changes: 1 addition & 1 deletion mirc/templates/fiber/go.mod.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module {{ .PkgName }}
go 1.18

require (
github.com/alimy/mir/v3 v3.0.1
github.com/alimy/mir/v3 v3.1.0
github.com/gofiber/fiber v1.14.6
)

Expand Down
4 changes: 2 additions & 2 deletions mirc/templates/fiber/go.sum.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/alimy/mir/v3 v3.0.1 h1:70J/KMiEUDjpXfE2myqJ9aw408rshHdTKcN5yH74xqM=
github.com/alimy/mir/v3 v3.0.1/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/alimy/mir/v3 v3.1.0 h1:zk8Afsi1rcbRpL8MdGCkKqWqqLUupeSY9NcJgnXxic8=
github.com/alimy/mir/v3 v3.1.0/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/andybalholm/brotli v1.0.0 h1:7UCwP93aiSfvWpapti8g88vVVGp2qqtGyePsSuDafo4=
github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y=
github.com/gofiber/fiber v1.14.6 h1:QRUPvPmr8ijQuGo1MgupHBn8E+wW0IKqiOvIZPtV70o=
Expand Down
2 changes: 1 addition & 1 deletion mirc/templates/gin/go.mod.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module {{ .PkgName }}
go 1.18

require (
github.com/alimy/mir/v3 v3.0.1
github.com/alimy/mir/v3 v3.1.0
github.com/gin-gonic/gin v1.8.2
)

Expand Down
4 changes: 2 additions & 2 deletions mirc/templates/gin/go.sum.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/alimy/mir/v3 v3.0.1 h1:70J/KMiEUDjpXfE2myqJ9aw408rshHdTKcN5yH74xqM=
github.com/alimy/mir/v3 v3.0.1/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/alimy/mir/v3 v3.1.0 h1:zk8Afsi1rcbRpL8MdGCkKqWqqLUupeSY9NcJgnXxic8=
github.com/alimy/mir/v3 v3.1.0/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
Expand Down
2 changes: 1 addition & 1 deletion mirc/templates/hertz/go.mod.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module {{ .PkgName }}
go 1.18

require (
github.com/alimy/mir/v3 v3.0.1
github.com/alimy/mir/v3 v3.1.0
github.com/cloudwego/hertz v0.4.2
)

Expand Down
4 changes: 2 additions & 2 deletions mirc/templates/hertz/go.sum.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/alimy/mir/v3 v3.0.1 h1:70J/KMiEUDjpXfE2myqJ9aw408rshHdTKcN5yH74xqM=
github.com/alimy/mir/v3 v3.0.1/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/alimy/mir/v3 v3.1.0 h1:zk8Afsi1rcbRpL8MdGCkKqWqqLUupeSY9NcJgnXxic8=
github.com/alimy/mir/v3 v3.1.0/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/bytedance/go-tagexpr/v2 v2.9.2 h1:QySJaAIQgOEDQBLS3x9BxOWrnhqu5sQ+f6HaZIxD39I=
github.com/bytedance/go-tagexpr/v2 v2.9.2/go.mod h1:5qsx05dYOiUXOUgnQ7w3Oz8BYs2qtM/bJokdLb79wRM=
github.com/bytedance/gopkg v0.0.0-20220413063733-65bf48ffb3a7 h1:PtwsQyQJGxf8iaPptPNaduEIu9BnrNms+pcRdHAxZaM=
Expand Down
2 changes: 1 addition & 1 deletion mirc/templates/httprouter/go.mod.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module {{ .PkgName }}
go 1.18

require (
github.com/alimy/mir/v3 v3.0.1
github.com/alimy/mir/v3 v3.1.0
github.com/julienschmidt/httprouter v1.3.0
)
{{if notEmptyStr .MirPkgName }}
Expand Down
4 changes: 2 additions & 2 deletions mirc/templates/httprouter/go.sum.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/alimy/mir/v3 v3.0.1 h1:70J/KMiEUDjpXfE2myqJ9aw408rshHdTKcN5yH74xqM=
github.com/alimy/mir/v3 v3.0.1/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/alimy/mir/v3 v3.1.0 h1:zk8Afsi1rcbRpL8MdGCkKqWqqLUupeSY9NcJgnXxic8=
github.com/alimy/mir/v3 v3.1.0/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U=
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
2 changes: 1 addition & 1 deletion mirc/templates/iris/go.mod.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module {{ .PkgName }}
go 1.18

require (
github.com/alimy/mir/v3 v3.0.1
github.com/alimy/mir/v3 v3.1.0
github.com/kataras/iris/v12 v12.1.8
)

Expand Down
4 changes: 2 additions & 2 deletions mirc/templates/iris/go.sum.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398 h1:WDC6ySpJzbxG
github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398/go.mod h1:a1uqRtAwp2Xwc6WNPJEufxJ7fx3npB4UV/JOLmbu5I0=
github.com/ajg/form v1.5.1 h1:t9c7v8JUKu/XxOGBU0yjNpaMloxGEJhUkqFRq0ibGeU=
github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY=
github.com/alimy/mir/v3 v3.0.1 h1:70J/KMiEUDjpXfE2myqJ9aw408rshHdTKcN5yH74xqM=
github.com/alimy/mir/v3 v3.0.1/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/alimy/mir/v3 v3.1.0 h1:zk8Afsi1rcbRpL8MdGCkKqWqqLUupeSY9NcJgnXxic8=
github.com/alimy/mir/v3 v3.1.0/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/andybalholm/brotli v1.0.4 h1:V7DdXeJtZscaqfNuAdSRuRFzuiKlHSC/Zh3zl9qY3JY=
github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
Expand Down
2 changes: 1 addition & 1 deletion mirc/templates/macaron/go.mod.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module {{ .PkgName }}
go 1.18

require (
github.com/alimy/mir/v3 v3.0.1
github.com/alimy/mir/v3 v3.1.0
gopkg.in/macaron.v1 v1.4.0
)

Expand Down
4 changes: 2 additions & 2 deletions mirc/templates/macaron/go.sum.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/alimy/mir/v3 v3.0.1 h1:70J/KMiEUDjpXfE2myqJ9aw408rshHdTKcN5yH74xqM=
github.com/alimy/mir/v3 v3.0.1/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/alimy/mir/v3 v3.1.0 h1:zk8Afsi1rcbRpL8MdGCkKqWqqLUupeSY9NcJgnXxic8=
github.com/alimy/mir/v3 v3.1.0/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/go-macaron/inject v0.0.0-20160627170012-d8a0b8677191 h1:NjHlg70DuOkcAMqgt0+XA+NHwtu66MkTVVgR4fFWbcI=
github.com/go-macaron/inject v0.0.0-20160627170012-d8a0b8677191/go.mod h1:VFI2o2q9kYsC4o7VP1HrEVosiZZTd+MVT3YZx4gqvJw=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
Expand Down
2 changes: 1 addition & 1 deletion mirc/templates/mux/go.mod.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module {{ .PkgName }}
go 1.18

require (
github.com/alimy/mir/v3 v3.0.1
github.com/alimy/mir/v3 v3.1.0
github.com/gorilla/mux v1.8.0
)
{{if notEmptyStr .MirPkgName }}
Expand Down
4 changes: 2 additions & 2 deletions mirc/templates/mux/go.sum.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/alimy/mir/v3 v3.0.1 h1:70J/KMiEUDjpXfE2myqJ9aw408rshHdTKcN5yH74xqM=
github.com/alimy/mir/v3 v3.0.1/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/alimy/mir/v3 v3.1.0 h1:zk8Afsi1rcbRpL8MdGCkKqWqqLUupeSY9NcJgnXxic8=
github.com/alimy/mir/v3 v3.1.0/go.mod h1:ybhT2ijOiDn0lLwWzIY6vXdv+uzZrctS7VFfczcXBWU=
github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
2 changes: 1 addition & 1 deletion mirc/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var (
BuildTime = ""

// AppVer version of Mirc
AppVer = semver.MustParse("v3.0.2")
AppVer = semver.MustParse("v3.1.0")
)

func ShowInfo() string {
Expand Down

0 comments on commit 299fc60

Please sign in to comment.