Skip to content

Setting functions on an object #450

Answered by dop251
pgundlach asked this question in Q&A
Discussion options

You must be logged in to vote

Methods are already exposed, as long as they are exported, so in your example d.DoSomething() would work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pgundlach
Comment options

Answer selected by pgundlach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants