generated from fun-stack/example
-
Notifications
You must be signed in to change notification settings - Fork 4
/
page-header-data.go
69 lines (51 loc) · 1.37 KB
/
page-header-data.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
package main
import "database/sql"
type DefaultPageHeaderData struct{ UserID sql.NullInt64 }
func (d DefaultPageHeaderData) IsFairPage() bool {
return false
}
func (d DefaultPageHeaderData) IsUpvoteratePage() bool {
return false
}
func (d DefaultPageHeaderData) IsBestUpvoteratePage() bool {
return false
}
func (d DefaultPageHeaderData) IsHNTopPage() bool {
return false
}
func (d DefaultPageHeaderData) IsNewPage() bool {
return false
}
func (d DefaultPageHeaderData) IsBestPage() bool {
return false
}
func (d DefaultPageHeaderData) IsAskPage() bool {
return false
}
func (d DefaultPageHeaderData) IsShowPage() bool {
return false
}
func (d DefaultPageHeaderData) IsRawPage() bool {
return false
}
func (d DefaultPageHeaderData) IsPenaltiesPage() bool {
return false
}
func (d DefaultPageHeaderData) IsBoostsPage() bool {
return false
}
func (d DefaultPageHeaderData) IsResubmissionsPage() bool {
return false
}
func (d DefaultPageHeaderData) IsAboutPage() bool {
return false
}
func (d DefaultPageHeaderData) IsAlgorithmsPage() bool {
return false
}
func (d DefaultPageHeaderData) IsScorePage() bool {
return false
}
func (d DefaultPageHeaderData) IsAlternativeFrontPage() bool {
return d.IsHNTopPage() || d.IsRawPage() || d.IsPenaltiesPage() || d.IsBoostsPage() || d.IsResubmissionsPage() || d.IsFairPage() || d.IsUpvoteratePage() || d.IsBestUpvoteratePage()
}