Print your name and your best friend's name using Println twice. Check out this exercise here. Say hello to yourself. Build your program using go build Send it to your friend S/he should use be using
阅读全文
go 01-packages-A
Where to store the source code files that belong to a package? Each file should go into a different directory In a single directory CORRECT Why a package clause is used in a Go source-code file? It's
阅读全文
go 03-scopes
What's a scope? Executable block of code The visibility of the declared names CORRECT Determines what to run package awesome import "fmt" var enabled bool func block() { var counter int fmt.Println(co
阅读全文
go 02-packages-B
Which one below is a correct package type in Go? Empty package Executable package CORRECT Transferrable package Librarian package Which package type go run can execute? Empty package Executable packag
阅读全文
go exercises
Use your own package Create a few Go files and call their functions from the main function. Try the scopes Learn the effects of scoping across packages. Rename imports Import the same package using a
阅读全文
go questions
What is an input stream? Any data source that generates contiguous data like Standard Input CORRECT An input from a user The contents of a file The contents of a website 1: That's right. The input str
阅读全文
go Exercises
Exercises Let's exercise with the scanner and maps. Uppercaser Use a scanner to convert the lines to uppercase, and print them. Unique Words Create a program that counts the unique words from an input
阅读全文
go Switch Statement
Switch Statement Richter Scale Richter Scale #2 Convert String Manipulator Days in a Month
阅读全文
go ☢️ USE THE FOLLOWING DIRECTORIES INSTEAD! ☢️
The course videos follow this directory. So, you can find the lecture files in the same place as they are explained in the course videos. But then I've moved them into their own directories. This dire
阅读全文
go questions
Which one is a correct function declaration? add func(a, b int) {} function run(a int, b int) {} func run(int a, b) {} func run(a, b int) {} CORRECT Which one is the input and result names of the foll
阅读全文