Why not use %v to print int and string
Nothing bad will happen, but the %d verb instructs the fmt package to print is as a number (using base 10), and the %v verb means to use the default format which can be overridden. See this example: type MyInt int func (mi MyInt) String() string { return fmt.Sprint(“*”, int(mi), “*”) } func main() { … Read more