Documentation ¶ Index ¶ func Walk(source []byte, walker Walker) (bool, []byte, error) type Block type Blocks func Unfence(source []byte) (Blocks, error) type Meta func (m Meta) Get(name string) string type Walker Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Walk ¶ func Walk(source []byte, walker Walker) (bool, []byte, error) Types ¶ type Block ¶ type Block struct { Lang string Meta Meta Code []byte StartLine int EndLine int } type Blocks ¶ type Blocks []*Block func Unfence ¶ func Unfence(source []byte) (Blocks, error) type Meta ¶ type Meta map[string]interface{} func (Meta) Get ¶ func (m Meta) Get(name string) string type Walker ¶ type Walker func(block *Block) error Source Files ¶ View all Source files block.gometa.gounfence.gowalk.go Click to show internal directories. Click to hide internal directories.