markdown

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateList

func GenerateList[T fmt.Stringer](items []T, generator ListGenerator) string

func GenerateNestedList

func GenerateNestedList[T TreeProviderWithString](data T, indentLevel int, generator NestedListGenerator) string

func GenerateNestedOL

func GenerateNestedOL[T TreeProviderWithString](data T, indentLevel int) string

func GenerateNestedUL

func GenerateNestedUL[T TreeProviderWithString](data T, indentLevel int) string

func GenerateOL

func GenerateOL[T fmt.Stringer](items []T) string

func GenerateUL

func GenerateUL[T TreeProviderWithString](data T, indentLevel int) string

Types

type ListGenerator

type ListGenerator struct {
	// contains filtered or unexported fields
}

func NewListGenerator

func NewListGenerator(prefix PrefixGenerator) ListGenerator

type NestedListGenerator

type NestedListGenerator struct {
	Prefix string
}

type PrefixGenerator

type PrefixGenerator func(int) string

type TreeProviderWithString

type TreeProviderWithString collections.TreeProvider[fmt.Stringer]

Jump to

Keyboard shortcuts

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