/** * A Go program that explicitly and intentionally echoes the * Order.java program. The difference is that this one does * not compile as ++ in Go is a statement rather than an expression. * * Created: Sep 2022 gtowell */ package main import "fmt" func main() { j:=6 k := echo(j++) * echo(j++) fmt.Printf("k:%v j:%v\n", k, j) } // Echo and return the passed parameter value func echo(val int) int { fmt.Printf("Param: %v\n", val) return val }