Functions in Go

Pubblicato il: 04 ottobre 2023
sul canale di: Philomath
743
12

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! ❤️


In questa pagina del sito puoi guardare il video online Functions in Go della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Philomath 04 ottobre 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 743 volte e gli è piaciuto 12 spettatori. Buona visione!