lang

package
v0.0.0-...-20ec07e Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpHandler

func HttpHandler(loop *painter.Loop, parser *Parser) http.Handler

HttpHandler конструює обробник HTTP запитів, який дані з запиту віддає у Parser, а потім відправляє отриманий список операцій у painter.Loop.

Types

type Parser

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

Parser уміє прочитати дані з вхідного io.Reader та повернути список операцій представлені вхідним скриптом.

func (*Parser) Parse

func (p *Parser) Parse(in io.Reader) ([]painter.Operation, error)

Jump to

Keyboard shortcuts

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