Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CodeHighlighterRenderer ¶
type CodeHighlighterRenderer struct {
Style *chroma.Style
Formatter *chroma_html.Formatter
Errors error
}
func NewCodeHighlighterRenderer ¶
func NewCodeHighlighterRenderer(tabWidth int, style string) CodeHighlighterRenderer
func (*CodeHighlighterRenderer) RenderNode ¶
func (r *CodeHighlighterRenderer) RenderNode(w io.Writer, node ast.Node, entering bool) (ast.WalkStatus, bool)
type EchoHandler ¶
type EchoHandler struct{}
EchoHandler takes the body and writes it back to the client
func (*EchoHandler) ServeHTTP ¶
func (h *EchoHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.