mirror of
https://github.com/SourceFellows/gobuch.git
synced 2025-08-03 05:02:16 +02:00
initial import
This commit is contained in:
16
best-practices/struct-to-text/main.go
Normal file
16
best-practices/struct-to-text/main.go
Normal file
@ -0,0 +1,16 @@
|
||||
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)
|
||||
|
||||
}
|
Reference in New Issue
Block a user