Skip to content

Conversation

@IkeVoodoo
Copy link

Added the function IdLong() on the User struct, allowing to get the user's ID as a uint64.

Copy link
Collaborator

@FedorLap2006 FedorLap2006 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I'd rename the function to be consistent with naming conventions


// Parses the `ID` field to a uint64 and returns it.
// This function is not cached
func (u *User) IdLong() uint64 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func (u *User) IdLong() uint64 {
func (u *User) IDLong() uint64 {

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