The article missed Go’s anonymous structs:
p := struct {
Name string
Age int
}{
Name: "Alice",
Age: 30,
}The article missed Go’s anonymous structs:
p := struct {
Name string
Age int
}{
Name: "Alice",
Age: 30,
}