parser

package
v0.0.0-...-ff8e54b Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: AGPL-3.0, AGPL-3.0-or-later Imports: 9 Imported by: 0

Documentation

Overview

Parses and verifies user-sent post data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBody

func ParseBody(body []byte) (common.Links, common.Commands, error)

Extract special elements from the post body which need some additional processing.

Run the full formatting process which is kinda superfluous (we don't need resulting markup) but it shouldn't be too expensive. That would guarantee that the parsing is correct (e.g. in case of code blocks).

func ParseSubject

func ParseSubject(s string) (string, error)

Check thread subject string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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