Working auth and photo json endpoint
Signed-off-by: Kris Nóva <kris@nivenly.com>
This commit is contained in:
parent
ef275f97f4
commit
e4323b6047
2032 changed files with 821464 additions and 52 deletions
104
vendor/github.com/leonelquinteros/gotext/plurals/tests.go
generated
vendored
Normal file
104
vendor/github.com/leonelquinteros/gotext/plurals/tests.go
generated
vendored
Normal file
|
@ -0,0 +1,104 @@
|
|||
/*
|
||||
* Copyright (c) 2018 DeineAgentur UG https://www.deineagentur.com. All rights reserved.
|
||||
* Licensed under the MIT License. See LICENSE file in the project root for full license information.
|
||||
*/
|
||||
|
||||
package plurals
|
||||
|
||||
type equal struct {
|
||||
value uint32
|
||||
}
|
||||
|
||||
func (e equal) test(n uint32) bool {
|
||||
return n == e.value
|
||||
}
|
||||
|
||||
type notequal struct {
|
||||
value uint32
|
||||
}
|
||||
|
||||
func (e notequal) test(n uint32) bool {
|
||||
return n != e.value
|
||||
}
|
||||
|
||||
type gt struct {
|
||||
value uint32
|
||||
flipped bool
|
||||
}
|
||||
|
||||
func (e gt) test(n uint32) bool {
|
||||
if e.flipped {
|
||||
return e.value > n
|
||||
} else {
|
||||
return n > e.value
|
||||
}
|
||||
}
|
||||
|
||||
type lt struct {
|
||||
value uint32
|
||||
flipped bool
|
||||
}
|
||||
|
||||
func (e lt) test(n uint32) bool {
|
||||
if e.flipped {
|
||||
return e.value < n
|
||||
}
|
||||
return n < e.value
|
||||
}
|
||||
|
||||
type gte struct {
|
||||
value uint32
|
||||
flipped bool
|
||||
}
|
||||
|
||||
func (e gte) test(n uint32) bool {
|
||||
if e.flipped {
|
||||
return e.value >= n
|
||||
}
|
||||
return n >= e.value
|
||||
}
|
||||
|
||||
type lte struct {
|
||||
value uint32
|
||||
flipped bool
|
||||
}
|
||||
|
||||
func (e lte) test(n uint32) bool {
|
||||
if e.flipped {
|
||||
return e.value <= n
|
||||
}
|
||||
return n <= e.value
|
||||
}
|
||||
|
||||
type and struct {
|
||||
left test
|
||||
right test
|
||||
}
|
||||
|
||||
func (e and) test(n uint32) bool {
|
||||
if !e.left.test(n) {
|
||||
return false
|
||||
}
|
||||
return e.right.test(n)
|
||||
}
|
||||
|
||||
type or struct {
|
||||
left test
|
||||
right test
|
||||
}
|
||||
|
||||
func (e or) test(n uint32) bool {
|
||||
if e.left.test(n) {
|
||||
return true
|
||||
}
|
||||
return e.right.test(n)
|
||||
}
|
||||
|
||||
type pipe struct {
|
||||
modifier math
|
||||
action test
|
||||
}
|
||||
|
||||
func (e pipe) test(n uint32) bool {
|
||||
return e.action.test(e.modifier.calc(n))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue