changeset 7:514dc6c6a683

...
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Tue, 31 Mar 2020 15:18:24 +0900
parents fca852bfd500
children 8a7a15dc3b9d
files syllabus/getSyllabus.go
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 	}