gobuch/best-practices/struct-to-text/main.go
2020-08-21 06:26:40 +02:00

17 lines
199 B
Go

package main
import "fmt"
type Tester struct {
Name string
Alter int
Sonstwas string
}
func main() {
t := &Tester{Name: "Dingo", Alter: 3, Sonstwas: "Wert"}
fmt.Printf("%+v\n", t)
}