make() vs new() – Similarities & Differences



make() vs new() – Similarities & Differences

make() vs new() - Similarities & Differences

make() vs new() – Similarities & Differences
Can you properly define make () and new () functions? Are they interchangeable? If you’ve used them both, it can be hard to tell. However, these 2 built-in functions `make` and `new` share some commonalities and undeniably has a few key differences that are worth knowing as well. If you’re interested in learning more about these functions and when to apply it, make sure to watch this video! Enjoy!


Golang Dojo is all about becoming Golang Ninjas together. You can expect all kinds of Golang tutorials, news, tips & tricks, and my daily struggles as a Golang developer. Make sure to subscribe if you look forward to such content!

Get Your Golang Cheat Sheet! – https://golangdojo.com/cheatsheet
Git repos & notes – https://golangdojo.com/resources

Golang Basics – https://www.youtube.com/watch?v=VTJ8qnBevcs&list=PLve39GJ2D71xX0Ham0WoPaYfl8oTzZfN6
Golang Releases – https://www.youtube.com/watch?v=-wpISpghaB8&list=PLve39GJ2D71yrF4q9fEPYssF-C6PVErbv


Timestamps
0:00 – Intro
0:34 – make () & new() functions
1:04 – Data Types
1:39 – Return Types
2:10 – Memory Initialization
3:49 – Zero Value
4:24 – Outro


#golang #goprogramming #golangdojo

Comments are closed.