bashdoc

package module
v0.0.0-...-b716db8 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 5 Imported by: 0

README

bashdoc

API Doc Generator for Bash Libraries

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadLinesWithCode

func LoadLinesWithCode(reader io.Reader) ([]syntax.Pos, error)

func SortedFunctions

func SortedFunctions(functions []Function)

Types

type Comment

type Comment struct {
	syntax.Comment
}

type CommentsByLine

type CommentsByLine struct {
	Comments map[uint]Comment
}

func LoadCommentsFromSource

func LoadCommentsFromSource(reader io.Reader) (*CommentsByLine, error)

func (*CommentsByLine) LinesWithComments

func (c *CommentsByLine) LinesWithComments() []uint

type Function

type Function struct {
	Name  string
	Start syntax.Pos
	End   syntax.Pos
}

func LoadFunctionsFromSource

func LoadFunctionsFromSource(reader io.Reader) ([]Function, error)

func (*Function) IsWithinDeclaration

func (f *Function) IsWithinDeclaration(pos syntax.Pos) bool

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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