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

Use different type of fields for ID for the node #17

Open
sergeyglazyrindev opened this issue Nov 1, 2021 · 0 comments
Open

Use different type of fields for ID for the node #17

sergeyglazyrindev opened this issue Nov 1, 2021 · 0 comments

Comments

@sergeyglazyrindev
Copy link

sergeyglazyrindev commented Nov 1, 2021

Hey guys!
What does it take to make possible to use int64 or uint types for Id ? I am getting runtime errors here:
https://github.com/griffinqiu/go-nested-set/blob/main/nested_set.go#L63
here is my model definition:

type DiscussionComment struct {
	ID            uint       `gorm:"primarykey" nestedset:"id"`
}
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