ludoc

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Order       int    `json:"order"`
}

type Docs

type Docs struct {
	Categories map[string]Category `json:"categories"`
	Globals    map[string]Global   `json:"globals"`
	Functions  map[string]Function `json:"functions"`
	// contains filtered or unexported fields
}

func New

func New() *Docs

func (*Docs) Category

func (d *Docs) Category(name string, description string, order int)

func (*Docs) Function

func (d *Docs) Function(name string, description string, ret string, args ...string)

func (*Docs) Global

func (d *Docs) Global(name string, description string)

func (*Docs) PopCategory

func (d *Docs) PopCategory()

func (*Docs) PushCategory

func (d *Docs) PushCategory(name string)

type Function

type Function struct {
	Name        string   `json:"name"`
	Args        []string `json:"args"`
	Return      string   `json:"return"`
	Category    string   `json:"category"`
	Description string   `json:"description"`
}

type Global

type Global struct {
	Name        string `json:"name"`
	Category    string `json:"category"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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