~thrrgilag/woodstock

woodstock/entities.go -rw-r--r-- 824 bytes
62b10b5cMorgan McMillian Update for new project location and module name 3 months ago
                                                                                
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
package woodstock

// Links object definition
type Links struct {
	Link        string `json:"link"`
	Text        string `json:"text"`
	Len         int    `json:"len"`
	Pos         int    `json:"pos"`
	Title       string `json:"title"`
	Description string `json:"description"`
}

// Mentions object definition
type Mentions struct {
	ID        string `json:"id"`
	Len       int    `json:"len"`
	Pos       int    `json:"pos"`
	Text      string `json:"text"`
	IsLeading bool   `json:"is_leading"`
	IsCopy    bool   `json:"is_copy"`
}

// Tags object definition
type Tags struct {
	Len  int    `json:"len"`
	Pos  int    `json:"pos"`
	Text string `json:"text"`
}

// Entities object definition
type Entities struct {
	Links    []Links    `json:"links"`
	Mentions []Mentions `json:"mentions"`
	Tags     []Tags     `json:"tags"`
}