fmt.Stringer

package main

import "fmt"

type Person struct {
    Name string
    Age  int
}

func (p Person) String() string {
    return fmt.Sprintf("(Name: %v) (Age: %v)", p.Name, p.Age)
}

func main() {
    a := Person{"benz", 21}
    fmt.Println(a)
    fmt.Printf("%v\\n", a)
}
//(Name: benz) (Age: 21)
//(Name: benz) (Age: 21)