sections

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseSection

type BaseSection struct {
	Name    string
	Kind    Skind
	Content []string
}

func (*BaseSection) Display

func (bs *BaseSection) Display()

type Section

type Section interface {
	Display()
}

func NewBaseSection

func NewBaseSection(bs *BaseSection) Section

func NewTypeInfoSection

func NewTypeInfoSection(bs *BaseSection) Section

type Sections

type Sections struct {
	NameOrder []string
	Map       map[string]Section
}

func NewSections

func NewSections(r io.Reader) (*Sections, error)

func (*Sections) Display

func (ss *Sections) Display(name string)

func (*Sections) DisplayAll

func (ss *Sections) DisplayAll()

func (*Sections) DisplayNames

func (ss *Sections) DisplayNames()

type Skind

type Skind int
const (
	Base Skind = iota
	TypeInfo
)

type TypeInfoSection

type TypeInfoSection struct {
	*BaseSection
	*typeinfo.TypeInfo
}

func (*TypeInfoSection) Display

func (ts *TypeInfoSection) Display()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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