Documentation ¶
Index ¶
Constants ¶
View Source
const ( OpReplace = 'r' OpDelete = 'd' OpInsert = 'i' OpEqual = 'e' )
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
func Diff(f filesystem.File, after []byte) filesystem.FileChanges
Diff calculates difference between File's content and after byte sequence and returns it as filesystem.FileChanges
Types ¶
type File ¶
type File interface {
BlockAtPosition(filesystem.FilePosition) (*hcllib.Block, hcllib.Pos, error)
}
func NewFile ¶
func NewFile(f filesystem.File) File
type InvalidHclPosErr ¶
func (*InvalidHclPosErr) Error ¶
func (e *InvalidHclPosErr) Error() string
type NoBlockFoundErr ¶
func (*NoBlockFoundErr) Error ¶
func (e *NoBlockFoundErr) Error() string
Click to show internal directories.
Click to hide internal directories.