flowdoc

package
v1.169.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package flowdoc reads what a script's author wrote about a function: the first sentence of the comment above it, at the top of its body, or of its docstring, which a flow diagram's boxes are captioned with.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Caption

func Caption(d *syntax.DefStmt, maxRunes int) string

Caption is the first sentence of the comment the author wrote above a def, or at the top of its body, or else of its docstring. A script created since #1938 documents every function, so its every box carries a sentence a reader who does not read code can follow.

func DocSentence

func DocSentence(s syntax.Stmt, maxRunes int) string

DocSentence is the first sentence of a docstring statement, or "" when the statement is not one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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