Documentation ¶
Overview ¶
Package flowchart provides a simple way to create flowcharts in mermaid syntax.
Index ¶
- type Flowchart
- func (f *Flowchart) AsymmetricNode(name, text string) *Flowchart
- func (f *Flowchart) Build() error
- func (f *Flowchart) CircleNode(name, text string) *Flowchart
- func (f *Flowchart) CylindricalNode(name, text string) *Flowchart
- func (f *Flowchart) DatabaseNode(name, text string) *Flowchart
- func (f *Flowchart) DottedLink(from, to string) *Flowchart
- func (f *Flowchart) DottedLinkWithText(from, to, text string) *Flowchart
- func (f *Flowchart) DoubleCircleNode(name, text string) *Flowchart
- func (f *Flowchart) HexagonNode(name, text string) *Flowchart
- func (f *Flowchart) InvisibleLink(from, to string) *Flowchart
- func (f *Flowchart) LinkWithArrowHead(from, to string) *Flowchart
- func (f *Flowchart) LinkWithArrowHeadAndText(from, to, text string) *Flowchart
- func (f *Flowchart) Node(name string) *Flowchart
- func (f *Flowchart) NodeWithMarkdown(name, markdownText string) *Flowchart
- func (f *Flowchart) NodeWithNewLines(name, textWithNewLines string) *Flowchart
- func (f *Flowchart) NodeWithText(name, text string) *Flowchart
- func (f *Flowchart) OpenLink(from, to string) *Flowchart
- func (f *Flowchart) OpenLinkWithText(from, to, text string) *Flowchart
- func (f *Flowchart) ParallelogramAltNode(name, text string) *Flowchart
- func (f *Flowchart) ParallelogramNode(name, text string) *Flowchart
- func (f *Flowchart) RhombusNode(name, text string) *Flowchart
- func (f *Flowchart) RoundEdgesNode(name, text string) *Flowchart
- func (f *Flowchart) StadiumNode(name, text string) *Flowchart
- func (f *Flowchart) String() string
- func (f *Flowchart) SubroutineNode(name, text string) *Flowchart
- func (f *Flowchart) ThickLink(from, to string) *Flowchart
- func (f *Flowchart) ThickLinkWithText(from, to, text string) *Flowchart
- func (f *Flowchart) TrapezoidAltNode(name, text string) *Flowchart
- func (f *Flowchart) TrapezoidNode(name, text string) *Flowchart
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flowchart ¶
type Flowchart struct {
// contains filtered or unexported fields
}
Flowchart is a flowchart builder.
func NewFlowchart ¶
NewFlowchart returns a new Flowchart.
func (*Flowchart) AsymmetricNode ¶
AsymmetricNode adds a node with asymmetric shape to the flowchart.
func (*Flowchart) CircleNode ¶
CircleNode adds a node with circle shape to the flowchart.
func (*Flowchart) CylindricalNode ¶
CylindricalNode adds a node with cylindrical shape to the flowchart.
func (*Flowchart) DatabaseNode ¶
DatabaseNode adds a node with database shape to the flowchart. This method is same as CylindricalShapeNode()
func (*Flowchart) DottedLink ¶
DottedLink adds a dotted link to the flowchart.
func (*Flowchart) DottedLinkWithText ¶
DottedLinkWithText adds a dotted link with text to the flowchart.
func (*Flowchart) DoubleCircleNode ¶
DoubleCircleNode adds a node with double circle shape to the flowchart.
func (*Flowchart) HexagonNode ¶
HexagonNode adds a node with hexagon shape to the flowchart.
func (*Flowchart) InvisibleLink ¶
InvisibleLink adds an invisible link to the flowchart.
func (*Flowchart) LinkWithArrowHead ¶
LinkWithArrowHead adds a link with an arrow head to the flowchart.
func (*Flowchart) LinkWithArrowHeadAndText ¶
LinkWithArrowHeadAndText adds a link with an arrow head and text to the flowchart.
func (*Flowchart) NodeWithMarkdown ¶
NodeWithMarkdown adds a node with markdown text to the flowchart.
func (*Flowchart) NodeWithNewLines ¶
NodeWithNewLines adds a node with new lines to the flowchart.
func (*Flowchart) NodeWithText ¶
NodeWithText adds a node with text to the flowchart. Unicode characters are supported.
func (*Flowchart) OpenLinkWithText ¶
OpenLinkWithText adds an open link with text to the flowchart.
func (*Flowchart) ParallelogramAltNode ¶
ParallelogramAltNode adds a node with parallelogram shape to the flowchart.
func (*Flowchart) ParallelogramNode ¶
ParallelogramNode adds a node with parallelogram shape to the flowchart.
func (*Flowchart) RhombusNode ¶
RhombusNode adds a node with rhombus shape to the flowchart.
func (*Flowchart) RoundEdgesNode ¶
RoundEdgesNode adds a node with round edges to the flowchart.
func (*Flowchart) StadiumNode ¶
StadiumNode adds a node with stadium shape to the flowchart.
func (*Flowchart) SubroutineNode ¶
SubroutineNode adds a node with subroutine shape to the flowchart.
func (*Flowchart) ThickLinkWithText ¶
ThickLinkWithText adds a thick link with text to the flowchart.
func (*Flowchart) TrapezoidAltNode ¶
TrapezoidAltNode adds a node with trapezoid shape to the flowchart.
func (*Flowchart) TrapezoidNode ¶
TrapezoidNode adds a node with trapezoid shape to the flowchart.
type Option ¶
type Option func(*config)
Option sets the options for the Flowchart struct.
func WithOrientalBottomToTop ¶
func WithOrientalBottomToTop() Option
WithOrientalBottomToTop sets the oriental configuration to bottom to top.
func WithOrientalLeftToRight ¶
func WithOrientalLeftToRight() Option
WithOrientalLeftToRight sets the oriental configuration to left to right.
func WithOrientalRightToLeft ¶
func WithOrientalRightToLeft() Option
WithOrientalRightToLeft sets the oriental configuration to right to left.
func WithOrientalTopDown ¶
func WithOrientalTopDown() Option
WithOrientalTopDown sets the oriental configuration to top down. Same as top to bottom.
func WithOrientalTopToBottom ¶
func WithOrientalTopToBottom() Option
WithOrientalTopToBottom sets the oriental configuration to top to bottom.