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
13 lines
266 B
package hello
|
|
|
|
import (
|
|
"context"
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
|
|
"practice_Go/api/hello/v1"
|
|
)
|
|
|
|
func (c *ControllerV1) Hello(ctx context.Context, req *v1.HelloReq) (res *v1.HelloRes, err error) {
|
|
g.RequestFromCtx(ctx).Response.Writeln("Hello World!")
|
|
return
|
|
}
|