package Utils
import (
"bufio"
"os"
)
func ReadLine() string {
scanner := bufio.NewScanner(os.Stdin)
scanner.Scan()
return scanner.Text()
}
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Since Gogland looks in your whole GOPATH for usages of the package.Function and it can't find any, it then marks the function as unused.
If you want to have the function shown as use regardless of its name, there's a simple way to do so: write a test for it.