golang, does it make a difference if fmt uses% v or% d output if the data type is known to be an integer?
for example, the following code:
package main
import "fmt"
func main() {
var d int = 666
fmt.Printf("type d output is %d", d)
fmt.Printf("type v outout is %v", d)
}
output
type d output is 666
type v outout is 666
what"s the difference between the two? if there"s no difference, is it possible that all fmt uses% v