plantuml

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPlantUMLMindMap added in v0.3.0

func BuildPlantUMLMindMap(root *tree.Node, withDescription bool) paragraph.Paragraph
Example
root, _ := indentedtext.Import(Tree2)
fmt.Println(BuildPlantUMLMindMap(root, true).String())
fmt.Println(BuildPlantUMLMindMap(root, false).String())
Output:

@startmindmap
+ 0000
++ 1111
+++_ one one oneone oneoneone one\none oneone one
+++[#FFBBCC] 2222
++++_ two two two
++[#CCCCFF] 3333
+++ 444\n444\n444
++++ 5555
++ 6666
+++_ six <b>six</b> sixsixsixsix\nsix sixsix six\nsixsixsixsix
+++ 7777
++++ 8888
++++[#FFBBCC] 9999
+++++_ nine nine
++++ AAAA
+++++_ aa aaa aaa a a <i>aaaaaaa</i> aaaaaa\na a <b>aaaaaaa aaaaaa</b> aaaa aaaaaa\naaa aaaaaa aaaa aa aa aaa aaa a\na
+++++ BBBB
++++++ CCCC
+++ DDDD
++++[#CCFFCC] EEEE
+++++ FFFF
++++++ GGGG
++ HHHH
@endmindmap

@startmindmap
+ 0000
++ 1111
+++[#FFBBCC] 2222
++[#CCCCFF] 3333
+++ 444\n444\n444
++++ 5555
++ 6666
+++ 7777
++++ 8888
++++[#FFBBCC] 9999
++++ AAAA
+++++ BBBB
++++++ CCCC
+++ DDDD
++++[#CCFFCC] EEEE
+++++ FFFF
++++++ GGGG
++ HHHH
@endmindmap

func BuildPlantUMLSaltTreeWidget

func BuildPlantUMLSaltTreeWidget(root *tree.Node, withDescription bool) paragraph.Paragraph
Example
root, _ := indentedtext.Import(Tree1)
fmt.Println(BuildPlantUMLSaltTreeWidget(root, true).String())
fmt.Println(BuildPlantUMLSaltTreeWidget(root, false).String())
Output:

@startsalt
{
{T
+0000
++1111
++++<i>one one oneone oneoneone one</i>
++++<i>one oneone one</i>
+++2222
+++++<b>two two two</b>
++3333
+++4444
++++5555
++6666
++++<i>six six sixsixsixsix</i>
++++<i>six sixsix six</i>
++++<i>sixsixsixsix</i>
+++7777
++++8888
++++9999
++++++<b>nine nine</b>
++++AAAA
++++++aa aaa aaa a a aaaaaaa aaaaaa
++++++a a aaaaaaa aaaaaa aaaa aaaaaa
++++++aaa aaaaaa aaaa aa aa aaa aaa a
++++++a
+++++BBBB
++++++CCCC
+++DDDD
++++EEEE
+++++FFFF
++++++GGGG
++HHHH
}
}
@endsalt

@startsalt
{
{T
+0000
++1111
+++2222
++3333
+++4444
++++5555
++6666
+++7777
++++8888
++++9999
++++AAAA
+++++BBBB
++++++CCCC
+++DDDD
++++EEEE
+++++FFFF
++++++GGGG
++HHHH
}
}
@endsalt

func BuildPlantUMLWorkBreakdownStructure added in v0.3.0

func BuildPlantUMLWorkBreakdownStructure(root *tree.Node, withDescription bool) paragraph.Paragraph
Example
root, _ := indentedtext.Import(Tree2)
fmt.Println(BuildPlantUMLWorkBreakdownStructure(root, true).String())
fmt.Println(BuildPlantUMLWorkBreakdownStructure(root, false).String())
Output:

@startwbs
+ 0000
++ 1111
+++_ one one oneone oneoneone one\none oneone one
+++[#FFBBCC] 2222
++++_ two two two
++[#CCCCFF] 3333
+++ 444\n444\n444
++++ 5555
++ 6666
+++_ six <b>six</b> sixsixsixsix\nsix sixsix six\nsixsixsixsix
+++ 7777
++++ 8888
++++[#FFBBCC] 9999
+++++_ nine nine
++++ AAAA
+++++_ aa aaa aaa a a <i>aaaaaaa</i> aaaaaa\na a <b>aaaaaaa aaaaaa</b> aaaa aaaaaa\naaa aaaaaa aaaa aa aa aaa aaa a\na
+++++ BBBB
++++++ CCCC
+++ DDDD
++++[#CCFFCC] EEEE
+++++ FFFF
++++++ GGGG
++ HHHH
@endwbs

@startwbs
+ 0000
++ 1111
+++[#FFBBCC] 2222
++[#CCCCFF] 3333
+++ 444\n444\n444
++++ 5555
++ 6666
+++ 7777
++++ 8888
++++[#FFBBCC] 9999
++++ AAAA
+++++ BBBB
++++++ CCCC
+++ DDDD
++++[#CCFFCC] EEEE
+++++ FFFF
++++++ GGGG
++ HHHH
@endwbs

func BuildPlantUMLmindmap added in v0.3.0

func BuildPlantUMLmindmap(root *tree.Node, withDescription bool) paragraph.Paragraph

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL