package main import ( "fmt" //"sort" ) type lessonList struct { lessonId int name string } type liveCourse struct { Name string age int lessonList } func main() { live := liveCourse{"刘薇口语",25,lessonList{481,"第一节"}} fmt.Println(live) }
package main import ( "fmt" //"sort" ) type lessonList struct { lessonId int name string } type liveCourse struct { Name string age int lessonList } func main() { live := liveCourse{"刘薇口语",25,lessonList{481,"第一节"}} fmt.Println(live) }