Golang Tutorial #21 - Struct Methods
HTML-код
- Опубликовано: 13 сен 2024
- 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.
🎙 Subscribe to my second channel for weekly podcasts! / @timeoutwithtim
◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python
tech-with-tim....
📸 Instagram: / tech_with_tim
🌎 Website techwithtim.net
📱 Twitter: / techwithtimm
⭐ Discord: / discord
📝 LinkedIn: / tim-ruscica-82631b179
📂 GitHub: github.com/tec...
🔊 Podcast: anchor.fm/tech...
💵 One-Time Donations: www.paypal.com...
💰 Patreon: / techwithtim
◾◾◾◾◾◾
⚡ 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
3 minutes in and im already understand how it works. Straight to the point no bullshit. Thanks!
This is hands down the best example I could find on methods (even compared to paid courses). Thanks!
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?
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.
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!
Go is similar to C and C++ not python.
@Nicolás Gómez Aragón being a python engineer, i find a golang readability statement questionable
some parts looks like php concept
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!!
by the way they are called function receivers, as specified in the go docs
Really need a golang API tutorial pleaseee...
Tim, you have done an excellent job on this complex topic. Thanks a lot
Let's go let's go!
That language looks pretty awesome. :)
Will probably use it in conjunction or addition with C#.
very good video. explained much better than most
Just what I needed. Ty.
This was an amazing tutorial man, thank you very much!
such an attention to detail at this age
Great video series. I recommend being precise when saying parentheses, braces, and brackets. 👍
Excellent tutorial Tim! Thank you!
Thank you for this great tutorial. Really cool
thanks for clearing the topic
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).
bro, I highly recommend seeing videos by Todd McLeod, he has a really nice way of explaining things from scratch. And after watch Tim's videos, your concepts will be crystal clear!
outstandingly well explained
Very insightful than udemy. Thanks tim!
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.
Thank you. Great tutorials!. Helped a lot...
can you suggest some golang projects for resume?
Well explained. Thanks for that!☺
This is great, all the seires of GO in that case..!
Thank you a lot.
thank you!
Tim can you do a Data Anaylst Tutorial?
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 ?
Please do the regular videos in deep in golang
Hey man great tutorials, can you do a video about goroutines and channels?
@Tim Hello From India... I love the golang tutorial, I came so far watching the video. where are u from?
dont we have arrow operators in go like in C ? For ex: s->age, rather than s.age
In javascript, we just pass the obj as an argument by reference, here we are taking the help of pointers to do the same.
Correct ime if i am wrong
Golang API Tutorial please?
Could we pass them by reference instead as pointers
Awesome 👍.
Wouldn't you need to specify that student is a pointer with &, or no?
nice thanks for the info
Why the underscore after ‘for’?
Thanks man...
I'm not fun of programming but I'm a big fun of the next level of programming
it seems that this achieves the same result as OOP style.
Although many hate OOP because a bad use of it can lead to messy and overcomplicated code, I find it to be very satisfying while implementing my solutions. When I saw Go didn't have objects/classes I panicked but after taking a look at this I felt relieved! Plus, this eliminates the confusion between structs and classes in other languages like C and C++. Go's looking very promising!
I think that sometimes some reference to python could be nice and helpful to understand better some particular topic, solution etc
Python isn't a prerequisite to learn Go, and it's definitely NOT NEEDED. If you have a background on C, C++, or even Java, you won't have any problems learning Go.
I thought you would have better grades :) 2:37
He spent too much time learning real skills and not enough time studying about "civil rights" and spanish.
Golang API
I don't really understand
You're only in need of watching the previous lessons so go out of here. I don't have time sir.
Is Tim just 19? as given in the tutorial
yes, tim is in his 20s now. Padikkunna pillarokke angane annu!!