Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ require (
github.com/magiconair/properties v1.8.7
github.com/pelletier/go-toml v1.9.5
github.com/spf13/cast v1.6.0
go-spring.dev/web v1.0.0
gopkg.in/yaml.v2 v2.4.0
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cA
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
go-spring.dev/web v1.0.0 h1:ApNimwh2lFVu41rAYRJS73cKznWOfQLyKiHJo4l8RYM=
go-spring.dev/web v1.0.0/go.mod h1:yoOQV3dNFG8TO9Rcxp5BjO2w2K44dqa8V0fZlO4/2gw=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
Expand Down
45 changes: 45 additions & 0 deletions web/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# web
Move to https://github.com/go-spring-projects/web

## Quick start

```yaml
# http server config
http:
# listen address
addr: ":8080"
```

```go
package main

import (
"context"

"go-spring.dev/spring/gs"
_ "go-spring.dev/spring/web/starter"
"go-spring.dev/web"
)

type App struct {
Router web.Router `autowire:""`
}

func (app *App) OnInit(ctx context.Context) error {
app.Router.Get("/greeting", app.Greeting)
return nil
}

func (app *App) Greeting(ctx context.Context) string {
return "greeting!!!"
}

func main() {
gs.Object(new(App))

if err := gs.Run(); nil != err {
panic(err)
}
}

```
237 changes: 0 additions & 237 deletions web/bind.go

This file was deleted.

63 changes: 0 additions & 63 deletions web/bind_test.go

This file was deleted.

Loading