Skip to content

remotelogger.New should return a pointer instead of value #653

Answered by vipul-rawat
maohieng asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, we can to keep it uniform, but since we do not have methods defined to override the Logger interface(return type) we may not need to change the return to a pointer. Changing to a pointer does not seem to give us any benefit as when the interface is passed around since the underlying type is a large struct it is by design passed as a pointer.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by srijan-27
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
Converted from issue

This discussion was converted from issue #650 on May 27, 2024 11:53.