|
in templates Echo#Reverse(name string, params ...interface{}) will always output memory location of param without dereferencing . any workarounds? |
Answered by
aldas
Apr 15, 2023
Replies: 1 comment 1 reply
always prints /example/0xc000017350 ( a memory location) |
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
Reverseshould not be pointer. Remove&and you are fine.This is example from tests
echo/echo_test.go
Lines 1529 to 1539 in de1c798