With the following code:
var example *bool
example = true
log.Print(example)
I have the following error cannot convert true (untyped bool constant) to *bool
I manage to solve it declaring a new variable truevalue
:
var example *bool
truevalue := true
example = &truevalue
log.Print(example)
But I imagine there is a better way to do it, without declaring any new variables.