internal

package
v0.0.0-...-9e081f2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrAlign      = "inconsistent struct field align"
	ErrIndent     = "incorrect indent"
	ErrLiteral    = "literal struct types are not allowed, use typedef"
	ErrNoEofNl    = "no newline at file end"
	ErrNoSpace    = "missing space"
	ErrSameLine   = "must be on a separate line"
	ErrSpaces     = "spacing must be exactly one space symbol"
	ErrTab        = "no tabs allowed"
	ErrTrailSpace = "trailing spaces are not allowed"
	ErrWrongSpace = "excess space"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ReportLine

type ReportLine struct {
	Line, Col int
	Message   string
}

func Check

func Check(s *source.Source) ([]ReportLine, error)

func CheckFile

func CheckFile(name string) ([]ReportLine, error)

Jump to

Keyboard shortcuts

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