예제 #1
0
func (dr *debugRenderer) List(out *bytes.Buffer, text func() bool, flags int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(flags))
	debugText := func() bool {
		b := text()
		fmt.Println("text", gist6418290.GetParentFuncArgsAsString(), "->", b)
		return b
	}
	dr.real.List(out, debugText, flags)
}
예제 #2
0
func (dr *debugRenderer) Paragraph(out *bytes.Buffer, text func() bool) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString())
	debugText := func() bool {
		b := text()
		fmt.Println("text", gist6418290.GetParentFuncArgsAsString(), "->", b)
		return b
	}
	dr.real.Paragraph(out, debugText)
}
예제 #3
0
func (_ *debugRenderer) AutoLink(out *bytes.Buffer, link []byte, kind int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(link), kind))
}
예제 #4
0
func (_ *debugRenderer) Footnotes(out *bytes.Buffer, text func() bool) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString())
}
예제 #5
0
func (_ *debugRenderer) FootnoteItem(out *bytes.Buffer, name, text []byte, flags int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(name), string(text), flags))
}
예제 #6
0
func (_ *debugRenderer) Table(out *bytes.Buffer, header []byte, body []byte, columnData []int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(header), string(body), columnData))
}
예제 #7
0
func (_ *debugRenderer) TableCell(out *bytes.Buffer, text []byte, align int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(text), align))
}
예제 #8
0
func (_ *debugRenderer) FootnoteRef(out *bytes.Buffer, ref []byte, id int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(ref), id))
}
예제 #9
0
파일: main_test.go 프로젝트: rexposadas/gx
func (a debugAnnotator) Annotate(start int, kind syntaxhighlight.Kind, tokText string) (*annotate.Annotation, error) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(start, kind, tokText))

	return a.Annotator.Annotate(start, kind, tokText)
}
예제 #10
0
func (_ *debugRenderer) HRule(out *bytes.Buffer) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString())
}
예제 #11
0
func (_ *debugRenderer) Link(out *bytes.Buffer, link []byte, title []byte, content []byte) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(link), string(title), string(content)))
}
예제 #12
0
func (dr *debugRenderer) BlockQuote(out *bytes.Buffer, text []byte) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(text)))
	dr.real.BlockQuote(out, text)
}
예제 #13
0
func (_ *debugRenderer) Header(out *bytes.Buffer, text func() bool, level int, id string) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(level, id))
}
예제 #14
0
func (dr *debugRenderer) BlockCode(out *bytes.Buffer, text []byte, lang string) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(text), lang))
	dr.real.BlockCode(out, text, lang)
}
예제 #15
0
func (dr *debugRenderer) GetFlags() int {
	fmt.Println(gist6418290.GetParentFuncArgsAsString())
	return dr.real.GetFlags()
}
예제 #16
0
func (dr *debugRenderer) Entity(out *bytes.Buffer, entity []byte) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(entity)))
	dr.real.Entity(out, entity)
}
예제 #17
0
func (_ *debugRenderer) Emphasis(out *bytes.Buffer, text []byte) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(text)))
}
예제 #18
0
파일: debug_vfs.go 프로젝트: rexposadas/gx
func (dfs *debugFileSystem) ReadDir(path string) ([]os.FileInfo, error) {
	log.Println(gist6418290.GetParentFuncArgsAsString(path))
	return dfs.real.ReadDir(path)
}
예제 #19
0
func (dr *debugRenderer) LineBreak(out *bytes.Buffer) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString())
	dr.real.LineBreak(out)
}
예제 #20
0
func (_ *debugRenderer) RawHtmlTag(out *bytes.Buffer, tag []byte) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(tag)))
}
예제 #21
0
파일: debug_vfs.go 프로젝트: rexposadas/gx
func (dfs *debugFileSystem) Open(name string) (vfs.ReadSeekCloser, error) {
	log.Println(gist6418290.GetParentFuncArgsAsString(name))
	return dfs.real.Open(name)
}
예제 #22
0
func (dr *debugRenderer) ListItem(out *bytes.Buffer, text []byte, flags int) {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(string(text), flags))
	dr.real.ListItem(out, text, flags)
}
예제 #23
0
파일: debug_vfs.go 프로젝트: rexposadas/gx
func (dfs *debugFileSystem) String() string {
	log.Println(gist6418290.GetParentFuncArgsAsString())
	return dfs.real.String()
}
예제 #24
0
파일: main_test.go 프로젝트: rexposadas/gx
func (p debugPrinter) Print(w io.Writer, kind syntaxhighlight.Kind, tokText string) error {
	fmt.Println(gist6418290.GetParentFuncArgsAsString(kind, tokText))

	return p.Printer.Print(w, kind, tokText)
}