Documentation
¶
Overview ¶
package xmind require python3
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Topic ¶
type Topic struct { Title string `json:"title,omitempty" xml:"title,omitempty"` Topics []Topic `json:"topics,omitempty" xml:"topics,omitempty"` }
func (Topic) GetFirstSubTopicTitle ¶
type XMLContent ¶
type XMLTopic ¶
type XMLTopic struct { Title string `xml:"title,omitempty"` Children *XMLTopicChildren `xml:"children,omitempty"` }
type XMLTopicChildren ¶
type XMLTopicChildren struct { // TypedTopics 存在是为了设置 topics 这一层的 type 属性,必填,否则生成的脑图不展示子节点 // 从数据结构上来说可以直接用 []XMLTopic `xml:"topics>topic"` 替代,但这样无法在 topics 这一层设置 type 属性 // 另外 topics 和 topic 都有单独属性可填,所以还是需要单独设置结构 TypedTopics *XMLTypedTopics `xml:"topics,omitempty"` }
type XMLTopicType ¶
type XMLTopicType string
XMLTopicType topics 类型,必填属性(attr)
var (
TopicsTypeAttached XMLTopicType = "attached" // topics 必填属性
)
type XMLTypedTopics ¶
type XMLTypedTopics struct { Type XMLTopicType `xml:"type,attr"` Topics []*XMLTopic `xml:"topic"` // 这里为 topic,实际上为数组 }
Click to show internal directories.
Click to hide internal directories.