parser

package
v0.0.0-...-836b576 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

func New

func New(src []byte) *Parser

func (*Parser) Snippets

func (p *Parser) Snippets() (result Snippets)

type Snippet

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

func (*Snippet) Content

func (s *Snippet) Content() string

func (*Snippet) Description

func (s *Snippet) Description() string

func (*Snippet) Executable

func (s *Snippet) Executable() string

func (*Snippet) FirstLine

func (s *Snippet) FirstLine() string

func (*Snippet) Lines

func (s *Snippet) Lines() []string

func (*Snippet) Name

func (s *Snippet) Name() string

func (*Snippet) ReplaceContent

func (s *Snippet) ReplaceContent(val string)

type Snippets

type Snippets []*Snippet

func (Snippets) Lookup

func (s Snippets) Lookup(name string) (*Snippet, bool)

func (Snippets) Names

func (s Snippets) Names() (result []string)

Jump to

Keyboard shortcuts

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