Explore >> Select a destination


You are here

www.sethvargo.com
| | mariocarrion.com
2.2 parsecs away

Travel
| | No language changes but really nice additions.
| | hjr265.me
6.4 parsecs away

Travel
| | Concurrency is one of the central features of Go. And, to build concurrent programs in Go, you need goroutines. A goroutine is like a thread, but lighter. Much lighter. And, like any other built-in feature of Go, using it is dead simple: 1 2 3 4 5 6 7 package main func main() { go func() { println("Hello World") // Print "Hello World" from a different goroutine. }() } Wait. That didn't print anything.
| | mko.re
2.7 parsecs away

Travel
| |
| | jbrandhorst.com
25.8 parsecs away

Travel
| Create the protobuf interface We'll start by creating a folder for the package we want to create. Lets call it server. Next we type up a .proto file to define the interface between the server and the client. We'll have to include some extra proto annotations in order to have the gRPC-gateway generate the translations methods we need. Lets define a simple service with a single HTTP GET endpoint: service MyServer { rpc Simple(google.