Skip to main content

Hello, World!

Enter your name in a form, send it to the server and get a greeting in return.

http://localhost:8080/hello-world

Go service

Service interface defintion

https://github.com/foomo/gotsrpc-playground/blob/main/server/services/helloworld/service.go

Service implementation

https://github.com/foomo/gotsrpc-playground/blob/main/server/server/helloworld.go

Service proxy instantiation

https://github.com/foomo/gotsrpc-playground/blob/main/server/main.go#L38

Using the service proxy as a http handler

https://github.com/foomo/gotsrpc-playground/blob/main/server/main.go#L59

Next.js TypeScript client

Using the client in a Next.js page

https://github.com/foomo/gotsrpc-playground/blob/main/client/pages/hello-world.tsx#L8-L21