Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.md « compare « compare « tpl « functions « reference « documentation « en « content « exampleSite - github.com/gohugoio/gohugoioTheme2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5ee6e9327b85a8293d7da5af8c83e5aad061c532 (plain)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162





---
title: "compare"
linkTitle: "compare"
description: "Compare is Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. "
hugoSymbol: TODO




---















## compare.Conditional {#compare_namespace_conditional}

\([bool](/documentation/reference/gotypes/#bool),[any](/documentation/reference/gotypes/#any)\) → [any](/documentation/reference/gotypes/#any)
{.funcsig}
Conditional can be used as a ternary operator.
It returns a if condition, else b.


{{< docs/func-aliases "compare.Conditional" >}}
{{< docs/func-examples "compare.Conditional" >}}







## compare.Default {#compare_namespace_default}

\([any](/documentation/reference/gotypes/#any),[...any](/documentation/reference/objects//...any)\) → [any](/documentation/reference/gotypes/#any)
{.funcsig}
Default checks whether a given value is set and returns a default value if it
is not.  "Set" in this context means non-zero for numeric types and times;
non-zero length for strings, arrays, slices, and maps;
any boolean or struct value; or non-nil for any other types.


{{< docs/func-aliases "compare.Default" >}}
{{< docs/func-examples "compare.Default" >}}







## compare.Eq {#compare_namespace_eq}

\([any](/documentation/reference/gotypes/#any),[...any](/documentation/reference/objects//...any)\) → [bool](/documentation/reference/gotypes/#bool)
{.funcsig}
Eq returns the boolean truth of arg1 == arg2 || arg1 == arg3 || arg1 == arg4.


{{< docs/func-aliases "compare.Eq" >}}
{{< docs/func-examples "compare.Eq" >}}







## compare.Ge {#compare_namespace_ge}

\([any](/documentation/reference/gotypes/#any),[...any](/documentation/reference/objects//...any)\) → [bool](/documentation/reference/gotypes/#bool)
{.funcsig}
Ge returns the boolean truth of arg1 >= arg2 && arg1 >= arg3 && arg1 >= arg4.


{{< docs/func-aliases "compare.Ge" >}}
{{< docs/func-examples "compare.Ge" >}}







## compare.Gt {#compare_namespace_gt}

\([any](/documentation/reference/gotypes/#any),[...any](/documentation/reference/objects//...any)\) → [bool](/documentation/reference/gotypes/#bool)
{.funcsig}
Gt returns the boolean truth of arg1 > arg2 && arg1 > arg3 && arg1 > arg4.


{{< docs/func-aliases "compare.Gt" >}}
{{< docs/func-examples "compare.Gt" >}}







## compare.Le {#compare_namespace_le}

\([any](/documentation/reference/gotypes/#any),[...any](/documentation/reference/objects//...any)\) → [bool](/documentation/reference/gotypes/#bool)
{.funcsig}
Le returns the boolean truth of arg1 <= arg2 && arg1 <= arg3 && arg1 <= arg4.


{{< docs/func-aliases "compare.Le" >}}
{{< docs/func-examples "compare.Le" >}}







## compare.Lt {#compare_namespace_lt}

\([any](/documentation/reference/gotypes/#any),[...any](/documentation/reference/objects//...any)\) → [bool](/documentation/reference/gotypes/#bool)
{.funcsig}
Lt returns the boolean truth of arg1 < arg2 && arg1 < arg3 && arg1 < arg4.


{{< docs/func-aliases "compare.Lt" >}}
{{< docs/func-examples "compare.Lt" >}}









## compare.Ne {#compare_namespace_ne}

\([any](/documentation/reference/gotypes/#any),[...any](/documentation/reference/objects//...any)\) → [bool](/documentation/reference/gotypes/#bool)
{.funcsig}
Ne returns the boolean truth of arg1 != arg2 && arg1 != arg3 && arg1 != arg4.


{{< docs/func-aliases "compare.Ne" >}}
{{< docs/func-examples "compare.Ne" >}}