Documentation
¶
Index ¶
- func Exec(bin string, args []string) (string, error)
- func GetCmdStr(bin string, args []string) string
- func GetMdLinkHash(link string) string
- func GetPrelude(s string) (string, map[string]interface{}, error)
- func LineIndex(content string, search string) int
- func LineLess(P int, f func(*MdTitleTree)) func(*MdTitleTree)
- func PowerLess(P int, f func(*MdTitleTree)) func(*MdTitleTree)
- func Shell(wd, s string) (string, error)
- type CliError
- type MdTitle
- type MdTitleTree
- type TempCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMdLinkHash ¶
GetMdLinkHash encodes s to insert into an MD link.
func GetPrelude ¶
GetPrelude decodes and remove the prelude from the input string.
func LineLess ¶
func LineLess(P int, f func(*MdTitleTree)) func(*MdTitleTree)
LineLess select titles of Line<P
func PowerLess ¶
func PowerLess(P int, f func(*MdTitleTree)) func(*MdTitleTree)
PowerLess select titles of Power<P
Types ¶
type MdTitle ¶
MdTitle is a markdwon title.
func GetAllMdTitles ¶
GetAllMdTitles extracts all MD titles markup.
type MdTitleTree ¶
type MdTitleTree struct { MdTitle Parent *MdTitleTree Items []*MdTitleTree }
MdTitleTree is an MdTitle with tree capabilities
func MakeTitleTree ¶
func MakeTitleTree(titles []MdTitle) *MdTitleTree
MakeTitleTree transform a raw list of titles into a tree.
func (*MdTitleTree) String ¶
func (m *MdTitleTree) String() string
Click to show internal directories.
Click to hide internal directories.