Skip to content
New issue

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

any Handler function example? #392

Closed
kolinfluence opened this issue Nov 18, 2022 · 6 comments
Closed

any Handler function example? #392

kolinfluence opened this issue Nov 18, 2022 · 6 comments
Assignees
Labels
good first issue Good for newcomers wontfix This will not be worked on

Comments

@kolinfluence
Copy link

the equivalent of

func(ctx *fasthttp.RequestCtx) {}

only saw the below but doesnt say how to "Load" <- how does this function look like? same as fasthttp above?
https://www.cloudwego.io/zh/docs/hertz/tutorials/basic-feature/route/

	h.Handle("Load","/load", func(ctx context.Context, c *app.RequestContext) {
		c.String(consts.StatusOK, "load")
	})

@Duslia
Copy link
Member

Duslia commented Nov 19, 2022

I think this is just grammar sugar and you can implement it in your code

@Duslia Duslia added the wontfix This will not be worked on label Nov 19, 2022
@li-jin-gou li-jin-gou added the good first issue Good for newcomers label Nov 19, 2022
@li-jin-gou
Copy link
Member

In the routing example we can add this example.

@justlorain
Copy link
Member

I'd like to try it.

@L2ncE
Copy link
Member

L2ncE commented Nov 20, 2022

I'd like to try it.

thx❤️

@Duslia
Copy link
Member

Duslia commented Nov 20, 2022

The speed of replying issues is so fast😂

@li-jin-gou
Copy link
Member

@justlorain thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers wontfix This will not be worked on
Development

No branches or pull requests

5 participants