hcl

package
v0.0.0-...-978a5fb Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 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

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

type NoTokenFoundErr struct {
	AtPos hcllib.Pos
}

func (*NoTokenFoundErr) Error

func (e *NoTokenFoundErr) Error() string

Jump to

Keyboard shortcuts

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