-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
78 lines (62 loc) · 1.41 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package main
import (
"log"
"github.com/k-ueki/sublog/app/server/controller"
"github.com/k-ueki/sublog/slack"
"github.com/k-ueki/sublog/blogs"
)
func main() {
blogContoller := controller.NewBlogContoller()
list := blogs.BlogList{}
awsBlogs, err := blogContoller.GetAndSaveAWSBlog()
if err != nil {
log.Fatal(err)
}
awsBlogs.Append(&list)
cpBlogs, err := blogContoller.GetAndSaveCookpadBlog()
if err != nil {
log.Fatal(err)
}
cpBlogs.Append(&list)
caBlogs, err := blogContoller.GetAndSaveCyberAgentBlog()
if err != nil {
log.Fatal(err)
}
caBlogs.Append(&list)
//dBlogs, err := blogContoller.GetAndSaveDeNABlog()
//if err != nil {
// log.Fatal(err)
//}
//dBlogs.Append(&list)
eBlogs, err := blogContoller.GetAndSaveEurekaBlog()
if err != nil {
log.Fatal(err)
}
eBlogs.Append(&list)
gnosyBlogs, err := blogContoller.GetAndSaveGnosyBlog()
if err != nil {
log.Fatal(err)
}
gnosyBlogs.Append(&list)
merBlogs, err := blogContoller.GetAndSaveMercariBlog()
if err != nil {
log.Fatal(err)
}
merBlogs.Append(&list)
mfBlogs, err := blogContoller.GetAndSaveMoneyForwardBlog()
if err != nil {
log.Fatal(err)
}
mfBlogs.Append(&list)
vgBlogs, err := blogContoller.GetAndSaveVoyageGroupBlog()
if err != nil {
log.Fatal(err)
}
vgBlogs.Append(&list)
ztBlogs, err := blogContoller.GetAndSaveZozoTownBlog()
if err != nil {
log.Fatal(err)
}
ztBlogs.Append(&list)
slack.Send(&list)
}