Using facets in the go lang dgraph client

Did you have a look at this example https://godoc.org/github.com/dgraph-io/dgo#example-Txn-Mutate-Facets? Your are right that struct is converted to JSON before being sent to the server. We have some more documentation about setting facets using JSON at https://docs.dgraph.io/mutations/#facets.