Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Go lang level 5 lesson 1

how to move to lesson 2

go lang
by

5 Answers

sam5epi0l
Try this code in lesson 1 to move to the next one.

package main
import (
"fmt"
"bufio"
"os"
)

func main() {
fmt.Println("Enter a number:")
myReader := bufio.NewReader(os.Stdin)
userInput := myReader.ReadString('\n')
fmt.Println(userInput)
}
sumit37367
i do that but not procced... to next
lesson
sumit37367
# command-line-arguments
./index.go:11:19: mismatch: 1 variable but myReader.ReadString returns 2 values
iamabhishek
It is OK. In this lesson, you will get error. Just click on Submit and proceed to the next lesson. It will work.
sumit37367
thanks i already done that....

Login / Signup to Answer the Question.