We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm new in Golang, and I using Chi in any tutorials project I have now to learn Go. in this link, I found
r.Route("/articles", func(r chi.Router) { r.With(paginate).Get("/", listArticles) // GET /articles r.With(paginate).Get("/{month}-{day}-{year}", listArticlesByDate) // GET /articles/01-16-2017 r.Post("/", createArticle) // POST /articles r.Get("/search", searchArticles) // GET /articles/search // Regexp url parameters: r.Get("/{articleSlug:[a-z-]+}", getArticleBySlug) // GET /articles/home-is-toronto // Subrouters: r.Route("/{articleID}", func(r chi.Router) { r.Use(ArticleCtx) r.Get("/", getArticle) // GET /articles/123 r.Put("/", updateArticle) // PUT /articles/123 r.Delete("/", deleteArticle) // DELETE /articles/123 }) })
but I don't know what are paginate and what meaning of it
paginate
The text was updated successfully, but these errors were encountered:
Hi, please use Discussions or Stack Overflow for general questions.
Paginate in this case would be a Middleware. See
chi/_examples/rest/main.go
Line 248 in c1f2a7a
Sorry, something went wrong.
No branches or pull requests
Hi, I'm new in Golang, and I using Chi in any tutorials project I have now to learn Go.
in this link, I found
but I don't know what are
paginate
and what meaning of itThe text was updated successfully, but these errors were encountered: