redis / go-redis

Redis Go client
https://redis.uptrace.dev
BSD 2-Clause "Simplified" License
20.17k stars 2.37k forks source link

DOC-4345 added JSON samples for home page #3183

Closed andy-stark-redis closed 2 weeks ago

andy-stark-redis commented 2 weeks ago

DOC-4345

This is mainly to convert the JSON examples from the Go client page into testable examples in the client repo. However, it also gives examples for adding options to a query and running an aggregation query. This brings the page in line with the NRedisStack JSON examples.

Note that the Go doc page needs some extra text to go around the new examples. I'll add them to the docs when this PR is accepted.