loops

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompositeLoop

type CompositeLoop struct {
	Loop     Loop
	SubLoops []CompositeLoop
	// contains filtered or unexported fields
}

func NewCompositeLoop

func NewCompositeLoop(rule *rules.LoopRule) *CompositeLoop

func (CompositeLoop) GetRule

func (r CompositeLoop) GetRule() *rules.LoopRule

func (CompositeLoop) Name

func (r CompositeLoop) Name() string

func (*CompositeLoop) Parse

func (r *CompositeLoop) Parse(data string, args ...string) (int, error)

func (*CompositeLoop) SetRule

func (r *CompositeLoop) SetRule(s *rules.LoopRule)

func (CompositeLoop) String

func (r CompositeLoop) String(args ...string) string

func (*CompositeLoop) Validate

func (r *CompositeLoop) Validate(loopRule *rules.LoopRule) error

type Loop

type Loop struct {
	Segments []segments.SegmentInterface
	// contains filtered or unexported fields
}

func NewLoop

func NewLoop(rule *rules.LoopRule) *Loop

func (Loop) GetRule

func (r Loop) GetRule() *rules.LoopRule

func (Loop) Name

func (r Loop) Name() string

func (*Loop) Parse

func (r *Loop) Parse(data string, args ...string) (int, error)

func (*Loop) SetRule

func (r *Loop) SetRule(s *rules.LoopRule)

func (Loop) String

func (r Loop) String(args ...string) string

func (*Loop) Validate

func (r *Loop) Validate(loopRule *rules.SegmentSetRule) error

Jump to

Keyboard shortcuts

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