gobuch/best-practices/struct-to-text/main.go

17 lines
199 B
Go
Raw Normal View History

2020-08-21 04:26:40 +00:00
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)
}