We introduce the basics of function syntax in Go.
Like what you see? Please like, subscribe, and check out our free online course accompanying this video at https://programmingforlovers.com.
Check your work on this code along and get access to dozens of autograded exercises at Cogniterra: https://cogniterra.org/course/63/promo.
Join our P4❤️ community Discord: / discord
Help us grow our project by making a donation: https://www.paypal.com/donate?campaig....
00:00 Introduction
00:45 Setup
01:33 Our first function, SumTwoInts
04:26 A function that returns more than one output
05:58 A function with no outputs
06:54 A printing function with no inputs or outputs
07:49 func main()
08:30 Calling functions
09:35 Function input types must match
12:10 AddOne() function
14:00 Go functions are pass by value
18:08 Order of functions doesn't matter
19:03 Consolidating input type shorthand
19:58 Happy coding! ❤️
Sur cette page du site, vous pouvez voir la vidéo en ligne Functions in Go durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Philomath 04 octobre 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 743 fois et il a aimé 12 téléspectateurs. Bon visionnage!