# HG changeset patch # User anatofuz # Date 1585635504 -32400 # Node ID 514dc6c6a68361afaf34e3cf76056c5a6cddf8a8 # Parent fca852bfd5007bd4678a41f52ea12b4aae873075 ... diff -r fca852bfd500 -r 514dc6c6a683 syllabus/getSyllabus.go --- a/syllabus/getSyllabus.go Tue Mar 31 15:12:16 2020 +0900 +++ b/syllabus/getSyllabus.go Tue Mar 31 15:18:24 2020 +0900 @@ -17,6 +17,13 @@ "github.com/pkg/errors" ) +//GetSyllabus is use main function struct. members using download html operation +type GetSyllabus struct { + year int + term string + outputdir string +} + // LectureDay include day of week (0~4, error -> 5), period, lastpriod (1~6) type LectureDay struct { DayOfWeek int @@ -107,6 +114,7 @@ outputPath := filepath.Join(g.outputdir, strBuilder.String()) if _, err := os.Stat(outputPath); err == nil { + fmt.Printf("already download %s.html\n", lectureID) return outputPath, nil }