core

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Separator rune = '='
	Comment   rune = '#'
)

Pre-defined separator and comment character

Variables

View Source
var (
	ErrWords                   error = errors.New("error in words source")
	ErrWordsEmpty              error = errors.New("words source is empty")
	ErrWordsNil                error = errors.New("words is nil")
	ErrNameNotPresent          error = errors.New("name not present in record")
	ErrNameDuplicated          error = errors.New("duplicated name found")
	ErrSameSeparatorAndComment error = errors.New("separator and comment are same character")
	ErrSeparatorNotPresent     error = errors.New("separator not present in record")
	ErrSeparatorIsInvalid      error = errors.New("separator character is invalid, the separator parameter must be one character delimiter of (=|:;,.?@)")
	ErrCommentIsInvalid        error = errors.New("comment character is invalid, the comment parameter must be one character delimiter of (#|:;,.?@)")
	ErrLineEmpty               error = errors.New("line is empty")
	ErrLineComment             error = errors.New("line is comment")
	ErrFileNil                 error = errors.New("file is nil")
	ErrFileEmpty               error = errors.New("file is empty")
	ErrSuffixIsInvalid         error = errors.New("suffix is invalid")
)

Errors for parsing source string and validations

Functions

This section is empty.

Types

type Suffix added in v1.1.0

type Suffix string

Suffix suffix type for WithSuffix struct

Jump to

Keyboard shortcuts

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