Skip to content

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

Description

@sergeyglazyrindev

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"`
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions