diff --git a/012_hands-on/01_hands-on/starting-code/main.go b/012_hands-on/01_hands-on/starting-code/main.go index ce7d46ef..b92910ac 100644 --- a/012_hands-on/01_hands-on/starting-code/main.go +++ b/012_hands-on/01_hands-on/starting-code/main.go @@ -32,14 +32,14 @@ func init() { func main() { years := []year{ - year{ + { AcaYear: "2020-2021", Fall: semester{ Term: "Fall", Courses: []course{ - course{"CSCI-40", "Introduction to Programming in Go", "4"}, - course{"CSCI-130", "Introduction to Web Programming with Go", "4"}, - course{"CSCI-140", "Mobile Apps Using Go", "4"}, + {"CSCI-40", "Introduction to Programming in Go", "4"}, + {"CSCI-130", "Introduction to Web Programming with Go", "4"}, + {"CSCI-140", "Mobile Apps Using Go", "4"}, }, }, Spring: semester{ @@ -51,22 +51,22 @@ func main() { }, }, }, - year{ + { AcaYear: "2021-2022", Fall: semester{ Term: "Fall", Courses: []course{ - course{"CSCI-40", "Introduction to Programming in Go", "4"}, - course{"CSCI-130", "Introduction to Web Programming with Go", "4"}, - course{"CSCI-140", "Mobile Apps Using Go", "4"}, + {"CSCI-40", "Introduction to Programming in Go", "4"}, + {"CSCI-130", "Introduction to Web Programming with Go", "4"}, + {"CSCI-140", "Mobile Apps Using Go", "4"}, }, }, Spring: semester{ Term: "Spring", Courses: []course{ - course{"CSCI-50", "Advanced Go", "5"}, - course{"CSCI-190", "Advanced Web Programming with Go", "5"}, - course{"CSCI-191", "Advanced Mobile Apps With Go", "5"}, + {"CSCI-50", "Advanced Go", "5"}, + {"CSCI-190", "Advanced Web Programming with Go", "5"}, + {"CSCI-191", "Advanced Mobile Apps With Go", "5"}, }, }, }, diff --git a/012_hands-on/02_solution/main.go b/012_hands-on/02_solution/main.go index 78391f7c..ddeca497 100644 --- a/012_hands-on/02_solution/main.go +++ b/012_hands-on/02_solution/main.go @@ -28,41 +28,41 @@ func init() { func main() { years := []year{ - year{ + { AcaYear: "2020-2021", Fall: semester{ Term: "Fall", Courses: []course{ - course{"CSCI-40", "Introduction to Programming in Go", "4"}, - course{"CSCI-130", "Introduction to Web Programming with Go", "4"}, - course{"CSCI-140", "Mobile Apps Using Go", "4"}, + {"CSCI-40", "Introduction to Programming in Go", "4"}, + {"CSCI-130", "Introduction to Web Programming with Go", "4"}, + {"CSCI-140", "Mobile Apps Using Go", "4"}, }, }, Spring: semester{ Term: "Spring", Courses: []course{ - course{"CSCI-50", "Advanced Go", "5"}, - course{"CSCI-190", "Advanced Web Programming with Go", "5"}, - course{"CSCI-191", "Advanced Mobile Apps With Go", "5"}, + {"CSCI-50", "Advanced Go", "5"}, + {"CSCI-190", "Advanced Web Programming with Go", "5"}, + {"CSCI-191", "Advanced Mobile Apps With Go", "5"}, }, }, }, - year{ + { AcaYear: "2021-2022", Fall: semester{ Term: "Fall", Courses: []course{ - course{"CSCI-40", "Introduction to Programming in Go", "4"}, - course{"CSCI-130", "Introduction to Web Programming with Go", "4"}, - course{"CSCI-140", "Mobile Apps Using Go", "4"}, + {"CSCI-40", "Introduction to Programming in Go", "4"}, + {"CSCI-130", "Introduction to Web Programming with Go", "4"}, + {"CSCI-140", "Mobile Apps Using Go", "4"}, }, }, Spring: semester{ Term: "Spring", Courses: []course{ - course{"CSCI-50", "Advanced Go", "5"}, - course{"CSCI-190", "Advanced Web Programming with Go", "5"}, - course{"CSCI-191", "Advanced Mobile Apps With Go", "5"}, + {"CSCI-50", "Advanced Go", "5"}, + {"CSCI-190", "Advanced Web Programming with Go", "5"}, + {"CSCI-191", "Advanced Mobile Apps With Go", "5"}, }, }, },