util

package
v3.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 4 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHeading3

func CreateHeading3(text string) string

func CreateHorizontalLine

func CreateHorizontalLine() string
func CreateLink(title string, url string) string

func CreateTable

func CreateTable(headers []string, rows [][]string) (string, error)

func CreateTableHeader

func CreateTableHeader(headers ...string) string

func CreateTableRow

func CreateTableRow(elements ...string) string

func MakeBold

func MakeBold(text string) string

Types

type MarkdownFormatter

type MarkdownFormatter struct{}

func (MarkdownFormatter) CreateCodeBlock

func (markdownFormatter MarkdownFormatter) CreateCodeBlock(title string, content string, language string) string

func (MarkdownFormatter) CreateHorizontalLine

func (markdownFormatter MarkdownFormatter) CreateHorizontalLine() string
func (markdownFormatter MarkdownFormatter) CreateLink(title string, url string) string

func (MarkdownFormatter) CreateTable

func (markdownFormatter MarkdownFormatter) CreateTable(headers []string, rows [][]string) (string, error)

func (MarkdownFormatter) MakeBold

func (markdownFormatter MarkdownFormatter) MakeBold(text string) string

Jump to

Keyboard shortcuts

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