-
Notifications
You must be signed in to change notification settings - Fork 3
/
cal.go
63 lines (52 loc) · 1.05 KB
/
cal.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
package models
// DataCAL is a Calculations
func ParseDataCAL(tokens []string) DataCAL {
cal := DataCAL{}
cal.Adsh = tokens[0]
cal.Grp = parseInt(tokens[1])
cal.Arc = parseInt(tokens[2])
cal.Negative = tokens[3] == "-1"
cal.Ptag = tokens[4]
cal.Pversion = tokens[5]
cal.Ctag = tokens[6]
cal.Cversion = tokens[7]
return cal
}
type DataCAL struct {
/**
Accession Number. The 20-character string
formed from the 18-digit number assigned by
the Commission to each EDGAR submission.
*/
Adsh string `gorm:"index:idx_cals_adsh"`
/**
Sequential number for grouping arcs in a submission.
*/
Grp int
/**
Sequential number for arcs within a
group in a submission.
*/
Arc int
/**
Indicates a weight of -1
(TRUE if the arc is negative), but typically +1 (FALSE).
*/
Negative bool
/**
The tag for the parent of the arc
*/
Ptag string
/**
The version of the tag for the parent of the arc
*/
Pversion string
/**
The tag for the child of the arc
*/
Ctag string
/**
The version of the tag for the child of the arc
*/
Cversion string
}