GoLang CommonMark\Interfaces\IVisitor::enter

request it (330)
GoLang replacement for PHP's CommonMark\Interfaces\IVisitor::enter [edit | history]

Do you know a GoLang replacement for PHP's CommonMark\Interfaces\IVisitor::enter? Write it!

PHP CommonMark\Interfaces\IVisitor::enter

PHP original manual for CommonMark\Interfaces\IVisitor::enter [ show | php.net ]


(cmark >= 1.0.0)



abstract public ?int|IVisitable CommonMark\Interfaces\IVisitor::enter ( IVisitable $visitable )



The current CommonMark\Interfaces\IVisitable being entered

Return Values

Returning CommonMark\Interfaces\IVisitor::Done will cause the backing iterator to exit.

Returning CommonMark\Interfaces\IVisitor::Enter will reset the backing iterator at entering the current IVisitable

Returning CommonMark\Interfaces\IVisitor::Leave will reset the backing iterator at exiting the current IVisitable

Returning an IVisitable will reset the backing iterator at entering the given IVisitable

Returning nothing will allow the backing iterator to continue