source

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringLines

func StringLines(lines Lines) []string

Types

type Line

type Line struct {
	// Bytes returns the line byte inc. any trailing end-of-line markers
	Bytes []byte

	// Range returns range of the line bytes inc. any trailing end-of-line markers
	// The range will span across two lines in most cases
	// (other than last line without trailing new line)
	Range hcl.Range
}

func MakeSourceLines

func MakeSourceLines(filename string, s []byte) []Line

func (Line) Copy added in v0.26.0

func (l Line) Copy() Line

type Lines

type Lines []Line

func (Lines) Copy added in v0.26.0

func (l Lines) Copy() Lines

Jump to

Keyboard shortcuts

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