filepos

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Position

type Position struct {
	// contains filtered or unexported fields
}

func NewPosition

func NewPosition(lineNum int) *Position

func NewUnknownPosition

func NewUnknownPosition() *Position

NewUnknownPosition is equivalent of zero value *Position

func NewUnknownPositionWithKeyVal added in v0.36.0

func NewUnknownPositionWithKeyVal(k, v interface{}, separator string) *Position

func (*Position) As4DigitString

func (p *Position) As4DigitString() string

func (*Position) AsCompactString added in v0.14.0

func (p *Position) AsCompactString() string

func (*Position) AsIntString

func (p *Position) AsIntString() string

func (*Position) AsString

func (p *Position) AsString() string

func (*Position) DeepCopy

func (p *Position) DeepCopy() *Position

func (*Position) DeepCopyWithLineOffset added in v0.17.0

func (p *Position) DeepCopyWithLineOffset(offset int) *Position

func (*Position) FromMemory added in v0.36.0

func (p *Position) FromMemory() bool

func (*Position) GetFile added in v0.35.0

func (p *Position) GetFile() string

func (*Position) GetLine added in v0.32.0

func (p *Position) GetLine() string

func (*Position) IsKnown

func (p *Position) IsKnown() bool

func (*Position) IsNextTo added in v0.39.0

func (p *Position) IsNextTo(otherPostion *Position) bool

IsNextTo compares the location of one position with another.

func (*Position) LineNum added in v0.32.0

func (p *Position) LineNum() int

func (*Position) SetFile

func (p *Position) SetFile(file string)

func (*Position) SetLine added in v0.32.0

func (p *Position) SetLine(line string)

Jump to

Keyboard shortcuts

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