Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommentBlock ¶
GetCommentBlock takes a byte array and a start position and may return a comment block if it finds one
func LineCounter ¶
LineCounter counts lines in a string/byte buffer
Types ¶
type Line ¶
Line represents a line of text in context of a byte array
func (Line) IsStartOfLine ¶
IsStartOfLine returns true if index is inside the white space between the beginning of the line and any non white space character
type OpaqueBytesBuffer ¶
OpaqueBytesBuffer is a genereic byte buffer interface
type SwapBuffer ¶
type SwapBuffer struct {
// contains filtered or unexported fields
}
SwapBuffer is a writeable buffer where the underlying buffer can be swaped
func (SwapBuffer) GetBuffer ¶
func (tb SwapBuffer) GetBuffer() OpaqueBytesBuffer
GetBuffer gets get current buffer
func (*SwapBuffer) SetBuffer ¶
func (tb *SwapBuffer) SetBuffer(b OpaqueBytesBuffer)
SetBuffer swaps the current buffer with b
Click to show internal directories.
Click to hide internal directories.