View definition

func FormatSelections

Defined in github.com/golang/tools/godoc/format.go

Description

FormatSelections takes a text and writes it to w using link and segment writers lw and sw as follows: lw is invoked for consecutive segment starts and ends as specified through the links selection, and sw is invoked for consecutive segments of text overlapped by the same selections as specified by selections. The link writer lw may be nil, in which case the links Selection is ignored.

FormatSelections is referenced in 1 repository

github.com/golang/tools