hcl

package
v0.33.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

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 document.Handle, before, after []byte) document.Changes

Diff calculates difference between Document's content and after byte sequence and returns it as document.Changes

func IsNoBlockFoundErr added in v0.3.0

func IsNoBlockFoundErr(err error) bool

Types

type InvalidHclPosErr

type InvalidHclPosErr struct {
	Pos     hcllib.Pos
	InRange hcllib.Range
}

func (*InvalidHclPosErr) Error

func (e *InvalidHclPosErr) Error() string

type NoBlockFoundErr

type NoBlockFoundErr struct {
	AtPos hcllib.Pos
}

func (*NoBlockFoundErr) Error

func (e *NoBlockFoundErr) Error() string

type NoTokenFoundErr added in v0.3.0

type NoTokenFoundErr struct {
	AtPos hcllib.Pos
}

func (*NoTokenFoundErr) Error added in v0.3.0

func (e *NoTokenFoundErr) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL