doc

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TAG_EMPTY     = "/// "
	TAG_EXISTS    = "/// @"
	TAG_LIB       = "/// @lib "
	TAG_IMPORT    = "/// @import "
	TAG_FUNC      = "/// @func "
	TAG_ARG       = "/// @arg"
	TAG_ARG_REQ   = "/// @arg "
	TAG_ARG_OPT   = "/// @arg? "
	TAG_RETURNS   = "/// @returns "
	TAG_CONSTANTS = "/// @constants "
	TAG_CONST     = "/// @const "
	TAG_BLOCK     = "/// @blocking"
	TAG_DESC      = "/// @desc"
	TAG_STRUCT    = "/// @struct "
	TAG_PROP      = "/// @prop "
	TAG_METHOD    = "/// @method "
	TAG_INCORRECT = "// @"
	TAG_SECTION   = "/// @section"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Arg

type Arg struct {
	Str  string
	Opt  bool
	Type string
	Desc string
}

type Const

type Const struct {
	Group  string
	Consts []string
}

type Fn

type Fn struct {
	Name    string
	Fn      string
	Args    []Arg
	Returns []Return
	Block   bool
	Desc    []string
}

type Lib

type Lib struct {
	File      string
	FileClean string
	Name      string
	Display   string
	Desc      []string
	Fns       []Fn
	Scs       [][]string
	Cns       []Const
	Sts       []Struct
	Friends   []*Lib
	Insert    template.HTML
}

func Parse

func Parse(filename string, file []byte) Lib

type Method added in v0.3.0

type Method struct {
	Name string
	Type string
	Desc string
}

type Prop added in v0.3.0

type Prop struct {
	Str  string
	Type string
	Desc string
}

type Return added in v0.3.0

type Return struct {
	Str  string
	Type string
}

type Struct

type Struct struct {
	Struct  string
	Props   []Prop
	Methods []Method
	Desc    []string
}

Jump to

Keyboard shortcuts

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