pretty

package
v0.0.0-...-8226121 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceSection

func ReplaceSection(in, replace, section string) (string, error)

func ReplaceSections

func ReplaceSections(in string, sections map[string]string) (string, error)

func ReplaceSectionsInFile

func ReplaceSectionsInFile(path string, sections map[string]string) error

func WrapWithNewLines

func WrapWithNewLines(in string) string

func WrapWithSegment

func WrapWithSegment(in, segment string) string

func WrapWithYAMLSegment

func WrapWithYAMLSegment(in string) string

Types

type Table

type Table[T any] interface {
	json.Marshaler

	Add(in ...T) Table[T]

	RenderMarkdown() (string, error)
	Redner() (string, error)
}

func NewTable

func NewTable[T any]() Table[T]

type TableTags

type TableTags struct {
	Enabled     *string `tag:"table"`
	Align       *string `tag:"table_align"`
	HeaderAlign *string `tag:"table_header_align"`
}

Jump to

Keyboard shortcuts

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