News for hackers. Stuff that matters.
Re:Lies we tell ourselves to keep using Golang by zgiber on Tuesday November 26, 2024 @05:31AM (#42244411)
That should not be an issue, unless the code is written in notepad. As for interfaces, a better approach is to return struct and accept interface in your functions wherever it is possible.
Re:Lies we tell ourselves to keep using Golang by linhns on Thursday November 28, 2024 @10:25PM (#42270543)
Sometimes it's better to to return interfaces, like contract style programming.