gobyexample/examples/struct-embedding/struct-embedding.sh
peterzhu1992 f900918c93
Add embed-directive example and rename embedding to struct-embedding
Signed-off-by: peterzhu1992 <peterzhu1992@gmail.com>
2022-05-17 01:20:06 -04:00

6 lines
115 B
Bash

$ go run embedding.go
co={num: 1, str: some name}
also num: 1
describe: base with num=1
describer: base with num=1