I’m reading an article about the difference of software architecture and software design https://codeburst.io/software-architecture-the-difference-between-architecture-and-design-7936abdd5830. It’s a good read by the way. So going back, I see a block of code that kinda interesting and make sense to add to my project. It was a Factory Design Pattern.
I think it’s a php code. That’s it! I’m trying to replicate that in go lang.
But I’m having an error
Here’s my code. I’m kinda stuck in here. If someone did the same thing in golang, please help me. Thank you so much