I wrote simple codes to test println and fmt.Println, but when I ran the code, it printed different results almost everytime. I tried to google the difference between println and fmt.Println but got nothing. Is there any one who knows the real difference or the priority or the sequence of those two function?
Here is the code:
package main
import (
"fmt"
)
func main(){
println("a")
fmt.Println("b")
println("c")
fmt.Println("d")
p()
}
func p(){
println("e")
fmt.Println("f")
println("g")
fmt.Println("h")
}
Thanks!