cespec

package
v0.0.0-...-318a3d5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(outputDir string)

Generate produces a cloudevents.md file in the provided outputDir path

Types

type MarkDown

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

MarkDown represents a MarkDown (*.md) file content

func NewMarkDown

func NewMarkDown() *MarkDown

NewMarkDown creates a new MarkDown instance

func (*MarkDown) Bullet

func (m *MarkDown) Bullet() *MarkDown

Bullet creates and appends a bullet point to the md document

func (*MarkDown) CodeBlock

func (m *MarkDown) CodeBlock(code, t string) *MarkDown

CodeBlock creates and appends a Code block to the md document

func (m *MarkDown) Link(text, url string) *MarkDown

Link creates and appends a md link to the md document

func (*MarkDown) MultiBr

func (m *MarkDown) MultiBr(lineBreaks int) *MarkDown

MultiBr appends multiple newlines to the md document

func (*MarkDown) String

func (m *MarkDown) String() string

String prints the current state of the md document

func (*MarkDown) Title

func (m *MarkDown) Title(title string, level int) *MarkDown

Title creates and appends a md title with given level to the md document

func (m *MarkDown) UpLink() *MarkDown

UpLink creates and appends a link to the top of the file

func (*MarkDown) Write

func (m *MarkDown) Write(str string) *MarkDown

Write appends a string to the md document

func (*MarkDown) WriteLineBreak

func (m *MarkDown) WriteLineBreak() *MarkDown

WriteLineBreak appends a empty line to the md document

func (*MarkDown) Writeln

func (m *MarkDown) Writeln(str string) *MarkDown

Writeln appends a newline appended string to the md document

Jump to

Keyboard shortcuts

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