You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
266 B

1 month ago
  1. package hello
  2. import (
  3. "context"
  4. "github.com/gogf/gf/v2/frame/g"
  5. "practice_Go/api/hello/v1"
  6. )
  7. func (c *ControllerV1) Hello(ctx context.Context, req *v1.HelloReq) (res *v1.HelloRes, err error) {
  8. g.RequestFromCtx(ctx).Response.Writeln("Hello World!")
  9. return
  10. }