Skip to content
New issue

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

Save a struct with ID #259

Open
skynet0590 opened this issue Oct 22, 2019 · 0 comments
Open

Save a struct with ID #259

skynet0590 opened this issue Oct 22, 2019 · 0 comments

Comments

@skynet0590
Copy link

For example. I have a struct

User struct {
 ID int
 Name string
}

When I insert a new User with no zero ID and higher with the last ID of User. The bucket still be no update the last ID. This make error when I create more User with zero ID. The user will fill up and when it reach the User was created by no zero ID. A new User will replace the old.

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

No branches or pull requests

1 participant