type T struct { a int b float64 c string } t := &T{ 7, -2.35, "abc" } fmt.Printf("%+v\n", t) //output: &{a:7 b:-2.35 c:abc}