-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
69 lines (53 loc) · 1.28 KB
/
types.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 uniform
import (
"github.com/go-diary/diary"
"reflect"
"time"
)
// A package shorthand for a map[string]interface
type M map[string]interface{}
// A package shorthand for a map[string]string
type P map[string]string
// A package shorthand for map[string][]string
type Q map[string][]string
// A package shorthand for func(r IRequest, p diary.IPage)
type S func(r IRequest, p diary.IPage)
type DateTime struct {
UtcTime time.Time
Timezone string
TimezoneAdjustment time.Duration
TimezoneTime time.Time
DaylightSavings bool
DaylightSavingsStart time.Time
DaylightSavingsEnd time.Time
DaylightSavingsAdjustment time.Duration
LocalTime time.Time
}
type Money struct {
CurrencyCode string
CurrencySymbol string
DateTime DateTime
WholeNumber int64
Precision byte
Value float64
Display string
}
type Real struct {
WholeNumber int64
Precision byte
Value float64
}
type Protected struct {
Kind reflect.Kind
Hash string
Encrypted []byte
}
func (p *Protected) CompareHash(value string) bool {
panic("not yet implemented")
}
func (p *Protected) Decrypt() interface{} {
panic("not yet implemented")
}
func NewProtectedValue(value interface{}) Protected {
panic("not yet implemented")
}