pm

package
Version: v0.0.0-...-15fa5f4 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Lua pattern match functions for Go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Pos     int
	Message string
}

func (*Error) Error

func (e *Error) Error() string

type MatchData

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

func Find

func Find(p string, src []byte, offset, limit int) (matches []*MatchData, err error)

func (*MatchData) Capture

func (st *MatchData) Capture(idx int) int

func (*MatchData) CaptureLength

func (st *MatchData) CaptureLength() int

func (*MatchData) IsPosCapture

func (st *MatchData) IsPosCapture(idx int) bool

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL