Working with Redis in Go is very similar to working with MySQL. Although there's no standard library, a lot of the same conventions are followed with functions such as Scan() to read data from Redis into Go types. It can be challenging to pick the best library to use in cases like this and I suggest surveying what's available periodically, as things can rapidly change.
This recipe uses a redis package to do basic setting and getting, a more complex sort function, and basic configuration. Like database/sql, you can set additional configuration in the form of write timeouts, poolsize, and more. Redis itself also provides a lot of additional functionality, including Redis cluster support, Zscore and counter objects, and distributed locks.
As in the preceding recipe, I recommend using a config object, which stores your Redis settings and configuration details for ease of setup and security.