Package info provides functions useful to create types like info.Range
Index ¶This section is empty.
Variables ¶This section is empty.
Functions ¶ func FixRange ¶func FixRange(rootdir string, old info.Range) info.Range
FixRange fix the given range. This is necessary since on tests we don't know the sandbox project path, so host absolute paths must be updated here.
func FixRangesOnConfig ¶func FixRangesOnConfig(dir string, cfg hcl.Config)
FixRangesOnConfig fix the ranges on the given HCL config. This is necessary since on tests we don't know the sandbox project path, so host absolute paths must be updated here.
func Range ¶func Range(fname string, start, end hhcl.Pos) info.Range
Range builds a info.Range for testing purposes. On tests we don't know the rootdir at test definition, so no rootdir is required. The returned range, if set on an hcl.Config will have to be fixed with FixRangesOnConfig before being compared to actual results.
Types ¶This section is empty.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4