go struct结构的实例
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)
}
还没有评论,来说两句吧...