Skip to content

Commit

Permalink
docs: 更新文档错误
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Apr 25, 2024
1 parent 7244282 commit a171b3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import "github.com/issue9/web/server"

// main.go
func main() {
srv, err := server.New("web", "1.0.0", &web.Options{})
router := srv.Routers().NewRouter()
srv, err := server.New("web", "1.0.0", &server.Options{})
router := srv.Routers().New()
router.Get("/admins", getAdmins).
Get("/groups", getGroups)

Expand Down

0 comments on commit a171b3a

Please sign in to comment.