Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Badge ¶
type Badge struct { ID string `xml:"Id,attr" json:"Id"` UserID string `xml:"UserId,attr" json:"UserId"` Class string `xml:"Class,attr"` Name string `xml:"Name,attr"` TagBased string `xml:"TagBased,attr"` Date string `xml:"Date,attr"` }
Badge entity
func (*Badge) EscapeFields ¶
func (b *Badge) EscapeFields()
EscapeFields update fields to the original (escaped) state.
func (Badge) GetCSVHeaderRow ¶
GetCSVHeaderRow returns CSV header for the correspondig encoder type
type Comment ¶
type Comment struct { ID string `xml:"Id,attr" json:"Id"` PostID string `xml:"PostId,attr" json:"PostId"` UserID string `xml:"UserId,attr" json:"UserId,omitempty"` Score string `xml:"Score,attr"` ContentLicense string `xml:"ContentLicense,attr"` UserDisplayName string `xml:"UserDisplayName,attr" json:"UserDisplayName,omitempty"` Text string `xml:"Text,attr" json:"Text,omitempty"` CreationDate string `xml:"CreationDate,attr"` }
Comment entity
func (*Comment) EscapeFields ¶
func (c *Comment) EscapeFields()
EscapeFields update fields to the original (escaped) state.
func (Comment) GetCSVHeaderRow ¶
GetCSVHeaderRow returns CSV header for the correspondig encoder type
type Encoder ¶
type Encoder interface { // GetCSVHeaderRow returns CSV header for the correspondig encoder type. // WARNING! Order is crucial! // Fields will be written to the CSV file in the same order this function returns them. GetCSVHeaderRow() []string // GETCSVRow returns row values for the corresponding encoder type // WARNING! Order is crucial! // Values will be written to the CSV file in the same order this function returns them. GETCSVRow() []string // EscapeFields update fields to the original (escaped) state. EscapeFields() }
Encoder interface
func NewEncoder ¶
NewEncoder returns a pointer to the new encoder according to requested type
type Post ¶
type Post struct { ID string `xml:"Id,attr" json:"Id"` OwnerUserID string `xml:"OwnerUserId,attr" json:"OwnerUserId,omitempty"` LastEditorUserID string `xml:"LastEditorUserId,attr" json:"LastEditorUserId,omitempty"` PostTypeID string `xml:"PostTypeId,attr" json:"PostTypeId"` AcceptedAnswerID string `xml:"AcceptedAnswerId,attr" json:"AcceptedAnswerId,omitempty"` Score string `xml:"Score,attr"` ParentID string `xml:"ParentId,attr" json:"ParentId,omitempty"` ViewCount string `xml:"ViewCount,attr" json:"ViewCount,omitempty"` AnswerCount string `xml:"AnswerCount,attr" json:"AnswerCount,omitempty"` CommentCount string `xml:"CommentCount,attr" json:"CommentCount,omitempty"` OwnerDisplayName string `xml:"OwnerDisplayName,attr" json:"OwnerDisplayName,omitempty"` LastEditorDisplayName string `xml:"LastEditorDisplayName,attr"` Title string `xml:"Title,attr" json:"Title,omitempty"` Tags string `xml:"Tags,attr" json:"Tags,omitempty"` ContentLIcense string `xml:"ContentLicense,attr"` Body string `xml:"Body,attr" json:"Body,omitempty"` FavoriteCount string `xml:"FavoriteCount,attr" json:"FavoriteCount,omitempty"` CreationDate string `xml:"CreationDate,attr"` CommunityOwnedDate string `xml:"CommunityOwnedDate,attr" json:"CommunityOwnedDate,omitempty"` ClosedDate string `xml:"ClosedDate,attr" json:"ClosedDate,omitempty"` LastEditDate string `xml:"LastEditDate,attr" json:"LastEditDate,omitempty"` LastActivityDate string `xml:"LastActivityDate,attr" json:"LastActivityDate,omitempty"` }
Post entity
func (*Post) EscapeFields ¶
func (p *Post) EscapeFields()
EscapeFields update fields to the original (escaped) state.
func (Post) GetCSVHeaderRow ¶
GetCSVHeaderRow returns CSV header for the correspondig encoder type
type PostHistory ¶
type PostHistory struct { ID string `xml:"Id,attr" json:"Id"` PostID string `xml:"PostId,attr" json:"PostId"` UserID string `xml:"UserId,attr" json:"UserId,omitempty"` PostHistoryTypeID string `xml:"PostHistoryTypeId,attr" json:"PostHistoryTypeId"` UserDisplayName string `xml:"UserDisplayName,attr" json:"UserDisplayName,omitempty"` ContentLicense string `xml:"ContentLicense,attr" json:"ContentLicense,omitempty"` RevisionGUID string `xml:"RevisionGUID,attr" json:"RevisionGUID,omitempty"` Text string `xml:"Text,attr" json:"Text,omitempty"` Comment string `xml:"Comment,attr" json:"Comment,omitempty"` CreationDate string `xml:"CreationDate,attr"` }
PostHistory entity
func (*PostHistory) EscapeFields ¶
func (ph *PostHistory) EscapeFields()
EscapeFields update fields to the original (escaped) state.
func (*PostHistory) GETCSVRow ¶
func (ph *PostHistory) GETCSVRow() []string
GETCSVRow returns row values for the corresponding encoder type
func (PostHistory) GetCSVHeaderRow ¶
func (ph PostHistory) GetCSVHeaderRow() []string
GetCSVHeaderRow returns CSV header for the correspondig encoder type
type PostLink ¶
type PostLink struct { ID string `xml:"Id,attr" json:"Id"` RelatedPostID string `xml:"RelatedPostId,attr" json:"RelatedPostId"` PostID string `xml:"PostId,attr" json:"PostId"` LinkTypeID string `xml:"LinkTypeId,attr" json:"LinkTypeId"` CreationDate string `xml:"CreationDate,attr"` }
PostLink entity
func (*PostLink) EscapeFields ¶
func (pl *PostLink) EscapeFields()
EscapeFields update fields to the original (escaped) state.
func (PostLink) GetCSVHeaderRow ¶
GetCSVHeaderRow returns CSV header for the correspondig encoder type
type Tag ¶
type Tag struct { ID string `xml:"Id,attr" json:"Id"` ExcerptPostID string `xml:"ExcerptPostId,attr" json:"ExcerptPostId,omitempty"` WikiPostID string `xml:"WikiPostId,attr" json:"WikiPostId,omitempty"` TagName string `xml:"TagName,attr"` Count string `xml:"Count,attr" json:"Count,omitempty"` }
Tag entity
func (*Tag) EscapeFields ¶
func (t *Tag) EscapeFields()
EscapeFields update fields to the original (escaped) state.
func (Tag) GetCSVHeaderRow ¶
GetCSVHeaderRow returns CSV header for the correspondig encoder type
type User ¶
type User struct { ID string `xml:"Id,attr" json:"Id"` AccountID string `xml:"AccountId,attr" json:"AccountId,omitempty"` Reputation string `xml:"Reputation,attr"` Views string `xml:"Views,attr" json:"Views,omitempty"` DownVotes string `xml:"DownVotes,attr" json:"DownVotes,omitempty"` UpVotes string `xml:"UpVotes,attr" json:"UpVotes,omitempty"` DisplayName string `xml:"DisplayName,attr" json:"DisplayName"` Location string `xml:"Location,attr" json:"Location,omitempty"` ProfileImageURL string `xml:"ProfileImageUrl,attr" json:"ProfileImageUrl,omitempty"` WebsiteURL string `xml:"WebsiteUrl,attr" json:"WebsiteUrl,omitempty"` AboutMe string `xml:"AboutMe,attr" json:"AboutMe,omitempty"` CreationDate string `xml:"CreationDate,attr"` LastAccessDate string `xml:"LastAccessDate,attr"` }
User entity
func (*User) EscapeFields ¶
func (u *User) EscapeFields()
EscapeFields update fields to the original (escaped) state.
func (User) GetCSVHeaderRow ¶
GetCSVHeaderRow returns CSV header for the correspondig encoder type
type Vote ¶
type Vote struct { ID string `xml:"Id,attr" json:"Id"` UserID string `xml:"UserId,attr" json:"UserId,omitempty"` PostID string `xml:"PostId,attr" json:"PostId"` VoteTypeID string `xml:"VoteTypeId,attr" json:"VoteTypeId"` BountyAmount string `xml:"BountyAmount,attr" json:"BountyAmount,omitempty"` CreationDate string `xml:"CreationDate,attr"` }
Vote entity
func (*Vote) EscapeFields ¶
func (v *Vote) EscapeFields()
EscapeFields update fields to the original (escaped) state.
func (Vote) GetCSVHeaderRow ¶
GetCSVHeaderRow returns CSV header for the correspondig encoder type