Functions in Go

Опубликовано: 04 Октябрь 2023
на канале: 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! ❤️


На этой странице сайта вы можете посмотреть видео онлайн Functions in Go длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Philomath 04 Октябрь 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 743 раз и оно понравилось 12 зрителям. Приятного просмотра!