packagehandlerimport("context""hilo/api/service/country""hilo/app/service/country/internal/service")// CountryHandler is a country handler.typeCountryHandlerstruct{country.UnimplementedCountryServersvc*service.CountryService}func(h*CountryHandler)GetCountryByShortName(ctxcontext.Context,req*country.GetCountryByShortNameReq)(*country.GetCountryByShortNameRep,error){m,err:=h.svc.GetCountryByShortName(ctx,req.ShortName)iferr!=nil{returnnil,err}returnCountryModelToShortNameRep(m),nil}// NewCountryHandler new a country handler.funcNewCountryHandler(uc*service.CountryService)*CountryHandler{return&CountryHandler{svc:uc}}var_country.CountryServer=&CountryHandler{}