Skip to content

Commit

Permalink
Merge pull request #159 from badeadan/patch-8
Browse files Browse the repository at this point in the history
typeIsLike works as typeIs
  • Loading branch information
mattfarina authored Jun 14, 2019
2 parents 352fbcd + 4f85227 commit 97b2a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reflection.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Types are slightly harder to work with, so there are three different functions:

- `typeOf` returns the underlying type of a value: `typeOf $foo`
- `typeIs` is like `kindIs`, but for types: `typeIs "*io.Buffer" $myVal`
- `typeIsLike` works as `kindIs`, except that it also dereferences pointers.
- `typeIsLike` works as `typeIs`, except that it also dereferences pointers.

**Note:** None of these can test whether or not something implements a given
interface, since doing so would require compiling the interface in ahead of time.

0 comments on commit 97b2a91

Please sign in to comment.