utils

package
v0.0.0-...-1f1bc37 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const BEGING_MARK string = "<!-- BEGIN_PDOCS -->"
View Source
const END_MARK string = "<!-- END_PDOCS -->"

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	Name     string
	Sections []Section
}

func NewDocumet

func NewDocumet(secs []Section) Document

func (Document) WriteDocument

func (doc Document) WriteDocument(file string) (err error)

type Section

type Section struct {
	Name        string
	Subsections []Subsection
}

func NewSection

func NewSection(name string, subs []Subsection) Section

func (Section) WriteSection

func (sec Section) WriteSection(fd *os.File)

type Subsection

type Subsection struct {
	Name  string
	Table Table
}

func NewSubsection

func NewSubsection(name string, table Table) Subsection

type Table

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

func NewTable

func NewTable(header []string, data [][]string, name string) Table

func (*Table) String

func (T *Table) String() string

func (*Table) WriteToFile

func (T *Table) WriteToFile(fd *os.File) (err error)

Jump to

Keyboard shortcuts

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