I am trying to learn golang net/rpc package and I like to know if it is possible to write a simple net/rpc client to connect to dgraph and save/fetch data from it. please help me. thanks.
Dgraph exposes communication over gRPC (and HTTP). net/rpc is different and is not supported with Dgraph.
There are a number of gRPC and HTTP clients in various programming languages in Dgraph. e.g., you can use dgo to connect to Dgraph from Go.