[Golang] No output?
I cant get my output... what am i supposed to do?
Voters
SpicedSpices (296)
This is happening because you are not printing anything to the console. At the top of your code under package main
, add
import "fmt"
This will allow you to print things to the console.
In function cout() instead of returning string, print it,
func cout(arg string){
fmt.Println(string)
}
Hi! That's because in the function you are using
return
, but not doing anything with that return value. Anyways, I think you're trying to usePrintln
: