Skip to content

Commit

Permalink
example: add type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
widmogrod committed Dec 19, 2023
1 parent d8d2220 commit 22090bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/tree_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ func TestTreeSchema(t *testing.T) {
},
}

sch := schema.FromGo(tree)
result := schema.MustToGo(sch)
sch := schema.FromGo[Tree](tree)
result := schema.ToGo[Tree](sch)
assert.Equal(t, tree, result)
}

Expand Down

0 comments on commit 22090bb

Please sign in to comment.