Versions in this module Expand all Collapse all v0 v0.12.0 Apr 6, 2024 Changes in this version + func CutPrefix(s, prefix string) (after string, found bool) + func DocumentURI(f AddressableFile) (uri protocol.DocumentURI, filename string, err error) + func Edit(f File, edits []protocol.TextEdit) error + func Position(f AddressableFile) (pos *protocol.TextDocumentPositionParams, filename string, err error) + func ToPath(uri protocol.DocumentURI) string + func ToURI(filename string) protocol.DocumentURI + type AddressableFile interface + CurrentAddr func() (q0, q1 int, err error) + Filename func() (string, error) + type EditList []protocol.TextEdit + func (l EditList) Len() int + func (l EditList) Less(i, j int) bool + func (l EditList) Swap(i, j int) + type File interface + DisableMark func() error + Mark func() error + Reader func() (io.Reader, error) + WriteAt func(q0, q1 int, b []byte) (int, error)