Skip to content

Conversation

splundid
Copy link
Contributor

@splundid splundid commented Nov 3, 2023

Sometimes it's convenient to represent your data with structs that contain pointer fields:

type Message struct {
     hasPermission *bool `redis:"has_permission,omitempty"`
}

With nil indicating that the value is absent.

This change allows go-redis to scan data into pointer fields

@ofekshenawa ofekshenawa merged commit c828764 into redis:master Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants