diff --git a/content/api/resources/operations/list.mdx b/content/api/resources/operations/list.mdx index 460acecc0..173864190 100644 --- a/content/api/resources/operations/list.mdx +++ b/content/api/resources/operations/list.mdx @@ -61,6 +61,29 @@ server console.error(err); }); ``` + +```go +package main + +import ( + "fmt" + "log" + + "github.com/stellar/go/clients/horizonclient" +) + +func main() { + client := horizonclient.DefaultPublicNetClient + operationRequest := horizonclient.OperationRequest {} + + resp, err := client.Operations(operationRequest) + if err != nil { + log.Fatal(err) + return + } + fmt.Println(resp) +} +```