Skip to content

Commit

Permalink
update readme for creating node
Browse files Browse the repository at this point in the history
  • Loading branch information
calebx committed Dec 25, 2020
1 parent 2e28b6b commit 58477f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ type Category struct {
```go
import nestedset "github.com/griffinqiu/go-nested-set"

// create a new node root level last child
nestedset.Create(tx, &node, nil)

// create a new node as parent first child
nestedset.Create(tx, &node, &parent)

// nestedset.MoveDirectionLeft
// nestedset.MoveDirectionRight
// nestedset.MoveDirectionInner
Expand Down

0 comments on commit 58477f2

Please sign in to comment.