udev

package
v0.0.0-...-76c535a Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SrcDir string
)

Functions

func LnRelify

func LnRelify(ln string) string

Types

type SrcMsg

type SrcMsg struct {
	Flag   int                    `json:",omitempty"`
	Ref    string                 `json:",omitempty"`
	Msg    string                 `json:",omitempty"`
	Misc   string                 `json:",omitempty"`
	Pos1Ln int                    `json:",omitempty"`
	Pos1Ch int                    `json:",omitempty"`
	Pos2Ln int                    `json:",omitempty"`
	Pos2Ch int                    `json:",omitempty"`
	Data   map[string]interface{} `json:",omitempty"`
}

func SrcMsgFromLn

func SrcMsgFromLn(ln string) (item *SrcMsg)

type SrcMsgs

type SrcMsgs []*SrcMsg

func CmdExecOnSrc

func CmdExecOnSrc(inclstderr bool, reline func(string) string, cmdname string, cmdargs ...string) SrcMsgs

func CmdExecOnSrcIn

func CmdExecOnSrcIn(dir string, inclstderr bool, reline func(string) string, cmdname string, cmdargs ...string) SrcMsgs

func CmdExecOnStdIn

func CmdExecOnStdIn(stdin string, dir string, reline func(string) string, cmdname string, cmdargs ...string) (SrcMsgs, error)

func SrcMsgsFromLns

func SrcMsgsFromLns(lines []string) (msgs SrcMsgs)

func (SrcMsgs) Len

func (me SrcMsgs) Len() int

func (SrcMsgs) Less

func (me SrcMsgs) Less(i, j int) bool

func (SrcMsgs) Swap

func (me SrcMsgs) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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