Quiz: Working with Files in Go
Test your knowledge of working with files in Go
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
What is the correct syntax to create a temporary file in Go?
A.
temp, err = os.OpenFile("temp.txt", os.TEMP, 0644)
B.
temp, err := ioutil.TempFile("", "*.txt")
C.
temp := ioutil.TempFile("", "*.txt")
D.
temp, err := ioutil.ReadFile(temp)
1 / 5