Help us shape the future of Go! Take the 2026 Go Developer Survey

code

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SectionAnnotations = 0
	SectionCopyright   = 100
	SectionHead        = 200
	SectionBody        = 300
	SectionFoot        = 400
)

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Sections map[int]*Section
}

func NewFile

func NewFile() *File

func (*File) AddSection

func (f *File) AddSection(id int)

func (*File) Annotations

func (f *File) Annotations() *Section

func (*File) Body

func (f *File) Body() *Section

func (*File) Copyright

func (f *File) Copyright() *Section

func (*File) Foot

func (f *File) Foot() *Section

func (*File) Head

func (f *File) Head() *Section

func (*File) Section

func (f *File) Section(id int) *Section

func (*File) String

func (f *File) String() string

type Section

type Section struct {
	Parts []string
}

func (*Section) Sprint added in v0.3.1

func (s *Section) Sprint(a ...any)

func (*Section) Sprintf

func (s *Section) Sprintf(format string, a ...any)

func (*Section) Tprintm

func (s *Section) Tprintm(template string, a map[string]any)

Tprintm {name} to notes arguments by name i.e. {name}, {last_name}, {address} and so on ...

func (*Section) Tprintn

func (s *Section) Tprintn(template string, a ...any)

Tprintn {n} , n here is a number to notes order of argument list to use i.e. {0}, {1}

Jump to

Keyboard shortcuts

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