Trying to interpolate an int
value into a string using %v
formatter as follows, yet nothing is printed,
package main
import "fmt"
func inc(i int) int {
return i + 1
}
func main() {
fmt.Sprintln("inc 1 equal %v", inc(1))
}
How to interpolate an int
value ?