Documentation ¶ Index ¶ Variables func CalcRune(r io.Reader, line, col int) (int, error) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrOffsetNotFound = errors.New("line and column offset not found") ) Functions ¶ func CalcRune ¶ func CalcRune(r io.Reader, line, col int) (int, error) CalcRune will return the byte offset for the specified line and column of the reader (e.g. source code file). Line number will start counting at 1, while column starts counting at 0. Types ¶ This section is empty. Source Files ¶ View all Source files offset.go Click to show internal directories. Click to hide internal directories.