-
in templates Echo#Reverse(name string, params ...interface{}) will always output memory location of param without dereferencing . any workarounds? |
Beta Was this translation helpful? Give feedback.
Answered by
aldas
Apr 15, 2023
Replies: 1 comment 1 reply
-
always prints /example/0xc000017350 ( a memory location) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are doing it wrong. That second parameter to
Reverse
should not be pointer. Remove&
and you are fine.This is example from tests
echo/echo_test.go
Lines 1529 to 1539 in de1c798