Documentation ¶ Index ¶ func Splice(origin graph.SourceOrigin, newContent []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Splice ¶ func Splice(origin graph.SourceOrigin, newContent []byte) error Splice replaces the byte range identified by origin with newContent in the source file. The write is atomic: content is written to a temp file first, then renamed. Types ¶ This section is empty. Source Files ¶ View all Source files splice.go Click to show internal directories. Click to hide internal directories.