We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Take a structure like this:
type Session struct { Start time.Time `json:"start"` End time.Time `json:"end"` Client string `json:"client"` }
and try to devise an 'ID' that refers to "start", say with:
// ID provides a unique identifier for this session func (s Session) ID() (string, interface{}) { return "start", s.Start.UnixNano() }
The records never match.
Session.Start = time.Now().Round(time.Second)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Take a structure like this:
and try to devise an 'ID' that refers to "start", say with:
The records never match.
Session.Start = time.Now().Round(time.Second)
to work.Session.Start = time.Now().Round(time.Second)
The text was updated successfully, but these errors were encountered: