1. What do you need for two functions to be the same type?
2. What does the len() function return if passed a UTF-8 encoded string?
3. Which is not a valid loop construct in Go?
4. How will you add the number 3 to the right side? Values := []int{1, 1, 2}
5. What is the value of Read?
6. Which is the only valid import statement in Go?
7. From where is the variable myVar accessible if it is declared outside of any functions in a file in package myPackage located inside module myModule?
8. How do you tell go test to print out the tests it is running?
9. What does a sync.Mutex block while it is locked?
10. What is an idiomatic way to pause execution of the current scope until an arbitrary number of goroutines have returned?
11. What is a side effect of using time.After in a select statement?
12. What is the select statement used for?
13. What restriction is there on the type of var to compile this i := myVal.(int)?
14. What is a channel?
15. How can you make a file build only on Windows?
16. What is the correct way to pass this as a body of an HTTP POST request? data := "A group of Owls is called a parliament"
17. What should the idiomatic name be for an interface with a single method and the signature Save() error?
18. A switch statement _ its own lexical block. Each case statement _ an additional lexical block.
19. What is the default case sensitivity of the JSON Unmarshal function?
20. What is the difference between the time package’s Time.Sub() and Time.Add() methods?
21. What is the risk of using multiple field tags in a single struct?
22. Where is the built-in recover method useful?
23. Which choice does not send output to standard error?
24. How can you tell Go to import a package from a different location?
25. If your current working directory is the top level of your project, which command will run all its test packages?
26. Which encodings can you put in a string?
27. How is the behavior of t.Fatal different inside a t.Run?
28. What does log.Fatal do?
29. Which is a valid Go time format literal?
30. How should you log an error (err)
31. Which file names will the go test command recognize as test files?
32. What is the common way to have several executables in your project?
33. How can you compile main.go to an executable that will run on OSX arm64 ?
34. What is the correct syntax ta start a goroutine that will print Hello Gopher!?
35. If you iterate over a map in a for range loop, in which order will the key:value pairs be accessed?
36. What is an idiomatic way to customize the representation of a custom struct in a formatted string?