Documentation ¶
Overview ¶
Package i18n internationalization support for card
Index ¶
- type Block
- func (b *Block) Blue() *Block
- func (b *Block) Carmine() *Block
- func (b *Block) Green() *Block
- func (b *Block) Grey() *Block
- func (b *Block) Indigo() *Block
- func (b *Block) Link(href *card.URLBlock) *Block
- func (b *Block) MarshalJSON() ([]byte, error)
- func (b *Block) NoForward() *Block
- func (b *Block) Orange() *Block
- func (b *Block) Purple() *Block
- func (b *Block) Red() *Block
- func (b *Block) Render() card.Renderer
- func (b *Block) String() string
- func (b *Block) Title(texts ...*LocalizedTextBlock) *Block
- func (b *Block) Turquoise() *Block
- func (b *Block) UpdateMulti(updateMulti bool) *Block
- func (b *Block) Violet() *Block
- func (b *Block) Wathet() *Block
- func (b *Block) Yellow() *Block
- type LocalizedBlock
- type LocalizedTextBlock
- type TextBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
Block 卡片元素
func (*Block) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Block) Title ¶
func (b *Block) Title(texts ...*LocalizedTextBlock) *Block
Title set title with locale
func (*Block) UpdateMulti ¶
UpdateMulti set card can be updated
type LocalizedBlock ¶
type LocalizedBlock struct {
// contains filtered or unexported fields
}
LocalizedBlock .
func WithLocale ¶
func WithLocale(locale string, elements ...card.Element) *LocalizedBlock
WithLocale creates a block with locale
type LocalizedTextBlock ¶
type LocalizedTextBlock struct {
// contains filtered or unexported fields
}
LocalizedTextBlock contains text with locale
Click to show internal directories.
Click to hide internal directories.