Fork me on GitHub
#joker
<
2021-04-07
>
jcburley06:04:59

https://github.com/jcburley/joker/releases/tag/gostd-v0.11 While `(. instance field)` returns the value of the field, instead of using `(set! ...)` to change it (as that's not yet supported), use `(var ...)` to return a `GoVar` for the field (the field's value itself is not retrieved). Then use `(deref ...)` on the resulting `GoVar` to obtain the value, or `(var-set ...)` to set it.

jcburley06:04:59

https://github.com/jcburley/joker/releases/tag/gostd-v0.11 While `(. instance field)` returns the value of the field, instead of using `(set! ...)` to change it (as that's not yet supported), use `(var ...)` to return a `GoVar` for the field (the field's value itself is not retrieved). Then use `(deref ...)` on the resulting `GoVar` to obtain the value, or `(var-set ...)` to set it.