filepos

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 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(line int) *Position

func NewUnknownPosition

func NewUnknownPosition() *Position

NewUnknownPosition is equivalent of zero value *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) IsKnown

func (p *Position) IsKnown() bool

func (*Position) Line

func (p *Position) Line() int

func (*Position) SetFile

func (p *Position) SetFile(file string)

Jump to

Keyboard shortcuts

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