-
Notifications
You must be signed in to change notification settings - Fork 0
/
struct.go
50 lines (42 loc) · 941 Bytes
/
struct.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
package SimpleCsv
import "reflect"
type csvHead struct {
Index int
Head string
Type reflect.Type
}
type whereData struct {
OperatorLogic []string
List []Where
}
type whereOperation struct {
baseData BaseData
selectColumns []string
whereInitialized bool
data interface{}
operationType string
whereData whereData
}
type finalOperation struct {
finalOperationState *whereOperation
}
type BaseData struct {
Location string
Struct interface{}
headers []string
headersDetail []csvHead
initialized bool
}
type compareObject struct {
Ori reflect.Type
Now reflect.Type
}
type Where struct {
Field string
//FirstField string
// Operator it's only support for comparison operators and 'in', 'not in'
Operator string
Value string
//SecondField string
//SecondFieldType string // optional default is 'value' and you just can use 'value' or 'field'
}