Skip to content

Instantly share code, notes, and snippets.

@andyleap andyleap/main.go
Created Mar 11, 2017

What would you like to do?
Simple RPC system!
package main
import (
func main() {
fmt.Println(rpctest.Add(1, 2))
package rpctest
import (
func Add(a, b int) int {
log.Printf("%d + %d = %d", a, b, a+b)
return a + b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.