data_workshop/way.go
2020-06-03 11:31:35 +08:00

19 lines
353 B
Go

package main
import (
context "context"
)
var ways = &KeyList{}
// wayserver can be embedded to have forward compatible implementations.
type wayserver struct {
}
// Name 街道名字
func (ws *wayserver) Name(ctx context.Context, req *Request) (*Reply, error) {
reply := &Reply{}
reply.Message = GetRandomKey(ways).(string)
return reply, nil
}