macports

package
v0.0.0-...-53bcd79 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lexer

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

func NewLexer

func NewLexer(r io.Reader) *Lexer

func (*Lexer) Scan

func (l *Lexer) Scan() (*PortfileToken, error)

type Portfile

type Portfile struct {
	PortSystem      string `portfile:"PortSystem"`
	Name            string `portfile:"name"`
	Homepage        string `portfile:"homepage"`
	Description     string `portfile:"description"`
	LongDescription string `portfile:"long_description"`
	License         string `portfile:"license"`
	Checksum        map[string]string
	Size            int64

	Attrs map[string][]string
	// contains filtered or unexported fields
}

func ParsePortfile

func ParsePortfile(r io.Reader) (*Portfile, error)

type PortfileToken

type PortfileToken struct {
	Type     PortfileTokenType
	Value    string
	StartPos int
}

func (*PortfileToken) String

func (t *PortfileToken) String() string

type PortfileTokenType

type PortfileTokenType string
const (
	PortfileTokenComment   PortfileTokenType = "comment"
	PortfileTokenLineBreak PortfileTokenType = "line_break"
	PortfileTokenIdent     PortfileTokenType = "ident"
	PortfileTokenLBracket  PortfileTokenType = "l_bracket"
	PortfileTokenRBracket  PortfileTokenType = "r_bracket"
)

Jump to

Keyboard shortcuts

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