Golang Tutorial #21 - Struct Methods

preview_player
Показать описание
This golang tutorial covers structs and struct methods. These are just like regular methods from object oriented programming but act on structs. Methods are like functions that can be called on a specific type, in this case they will be called on our created structs.

◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python

◾◾◾◾◾◾

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡

⭐ Tags ⭐
- Tech With Tim
- Golang Tutorial
- Structs Golang
- Methods Golang
- Go Methods
- Go Object Oriented Programming
- Methods in Golang

⭐ Hashtags ⭐
#GO #Golang
Рекомендации по теме
Комментарии
Автор

This is hands down the best example I could find on methods (even compared to paid courses). Thanks!

dmns
Автор

3 minutes in and im already understand how it works. Straight to the point no bullshit. Thanks!

ahmadjunaidi-ll
Автор

very much appreciate that these videos explain things as if Go were all that had ever existed - that is, not explained via comparisons to other langauges and their concepts.

michaelbonnet
Автор

Great description of methods. It seems like a good rule of thumb would be if your method name starts with ‘set’, then use a pointer. However, I have also read that you would use a pointer for large data structures, as using a value receiver creates a copy of the data being passed to the method. The pointer receiver would prevent the method from using system resources unnecessarily. Am I understanding that correctly?

armoredgemini
Автор

Using your videos to supplement what is unclear in the book I'm reading. Got lost on methods and totally got found with your video. Thanks a million!!

dandavis
Автор

Let's go let's go!

That language looks pretty awesome. :)

Will probably use it in conjunction or addition with C#.

gnul
Автор

I'm finding Go nothing like Python and while I can follow through each episode and understand the concepts, the syntax is so much more complex I can't get any of it to stick in my head. Hoping it will just one day fall into place!

rethanon
Автор

Tim, you have done an excellent job on this complex topic. Thanks a lot

zahidulislam
Автор

by the way they are called function receivers, as specified in the go docs

brutalbutler
Автор

Great video series. I recommend being precise when saying parentheses, braces, and brackets. 👍

blain_
Автор

such an attention to detail at this age

bilza
Автор

very good video. explained much better than most

danchisholm
Автор

This was an amazing tutorial man, thank you very much!

GuitarreroDaniel
Автор

Really need a golang API tutorial pleaseee...

allenjames
Автор

Very insightful than udemy. Thanks tim!

qolbinurwandi
Автор

Thank you for this great tutorial. Really cool

MaximRovinsky
Автор

Can not wait for channels and go routines :D
Do you have any plans of doing some tutorial on web programming with Go (cause of very powerful standard library), cause personally I still struggle with understanding Go documentation on those packages (whole node.js environment is much more understandable).

iossipmiljak
Автор

Thank you. Great tutorials!. Helped a lot...

btowers
Автор

THANKS! You are a good teacher. It will be cool if you will show examples on real projects.

For exmaple there is project structure

handler
service
repository

And in this structure everywhere pointers is used.

asmr_codster
Автор

I dont understand the function of for example "func (b *Reader) Read(p []byte) (n int, err error)" where it says: "Read reads data into p" but how can it reads data INTO p when there is no pointer to p and p is just a value to get from the function call ?

robertvocals