Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONMarshal ¶
Types ¶
type Card ¶
type Card struct { //ID string `json:"id"` Text string `json:"text"` HTML string `json:"html"` Photos []string `json:"photos"` URLs []string `json:"urls"` }
Card type is the public struct for embedded card into tweets.
type SummaryCardParser ¶
type SummaryCardParser struct{}
SummaryCardParser implements TwitterCardParser interface
func (*SummaryCardParser) Parse ¶
func (p *SummaryCardParser) Parse(bindingValues map[string]interface{}) (card *Card)
type SummaryLargeCardParser ¶
type SummaryLargeCardParser struct{}
SummaryLargeCardParser implements TwitterCardParser interface
func (*SummaryLargeCardParser) Parse ¶
func (p *SummaryLargeCardParser) Parse(bindingValues map[string]interface{}) (card *Card)
type TwitterCardParser ¶
TwitterCard defines the interface for parsing different twitter cards (summary, unified, ...)
func GetTwitterCardParserByName ¶
func GetTwitterCardParserByName(name string) TwitterCardParser
type UnifiedCardParser ¶
type UnifiedCardParser struct{}
UnifiedCardParser implements TwitterCardParser interface
func (*UnifiedCardParser) Parse ¶
func (p *UnifiedCardParser) Parse(bindingValues map[string]interface{}) *Card
Click to show internal directories.
Click to hide internal directories.