package
Version:
v0.0.0-...-421f03a
Opens a new window with list of versions in this module.
Published: Jan 8, 2019
License: BSD-3-Clause
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
File holds all the information we know about a file.
Read returns the contents of the file, reading it from file system if needed.
NewView creates a new View, given a root path and go/packages configuration.
If config is nil, one is created with the directory set to the rootPath.
GetFile returns a File for the given URI. It will always succeed because it
adds the file to the managed set if needed.
SetContent sets the overlay contents for a file. A nil content value will
remove the file from the active set and revert it to its on-disk contents.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.