DEV Community

Discussion on: Is there a way to have custom typecasting in GoLang?

Collapse
 
baenencalin profile image
Calin Baenen

I know I can make a function called ConstructJByte, NewJByte, etc... But I want to avoid that, I want the literal typecasting that Go has. (Unless those are just functions in disguise, with the same name as the type (somehow).)